From: hzerres Date: Mon, 22 Nov 2010 14:28:03 +0000 (+0000) Subject: (groupware) last checkin broke some things. Repaired primary Mail again... more to... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c9766f5db3714d36eeb04a22cc06d15a0ba87f29;p=gosa.git (groupware) last checkin broke some things. Repaired primary Mail again... more to come. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20320 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidget.inc b/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidget.inc index c9914869c..75a82d4a1 100644 --- a/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidget.inc +++ b/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidget.inc @@ -170,6 +170,10 @@ class FolderWidget extends plugin $status = $data['status']; $this->addPath($path, $name, $acls, $status); } + echo "
";
+		print_r($data);
+		echo "
"; + } diff --git a/gosa-plugins/groupware/personal/groupware/class_Groupware.inc b/gosa-plugins/groupware/personal/groupware/class_Groupware.inc index bf74a5bc0..f3078002a 100644 --- a/gosa-plugins/groupware/personal/groupware/class_Groupware.inc +++ b/gosa-plugins/groupware/personal/groupware/class_Groupware.inc @@ -825,6 +825,7 @@ class Groupware extends plugin // Save the primary Email Address. if($this->isFeatureEnabled("primaryMail")&& $this->hasFeaturebeenChanged("primaryMail")){ + echo "------MailAddress to be saved: ".$this->mailAddress."
"; $res = $this->groupwareDao->save("primaryMail", $this->uid, $this->mailAddress); if($res === NULL){ $message = _("Setting account mail address failed!"); diff --git a/gosa-plugins/groupware/personal/groupware/class_GroupwareDao.inc b/gosa-plugins/groupware/personal/groupware/class_GroupwareDao.inc index 656439674..3bebc00a6 100644 --- a/gosa-plugins/groupware/personal/groupware/class_GroupwareDao.inc +++ b/gosa-plugins/groupware/personal/groupware/class_GroupwareDao.inc @@ -103,7 +103,14 @@ class GroupwareDao{ if(is_array($valueArray)){ $valueArray = array_merge(array($function, $uid), $valueArray); }else{ - $valueArray = array($function, $uid); + if(!empty($valueArray)){ + //add if single value + $valueArray = array($function, $uid, $valueArray); + } + else{ + //omit otherwise + $valueArray = array($function, $uid); + } } $result = call_user_func_array(array($this->groupwarePluginRef, 'rpcExec'), $valueArray); @@ -133,13 +140,26 @@ class GroupwareDao{ * * NOT YET IMPLEMENTED */ - public function del($feature, $uid, $valueArray = null) + public function del($feature, $uid, $valueArray = "") { + //just debugs + echo "Feature:".$feature; + echo "uid:".$uid; + echo "array:".$valueArray; + $function = GroupwareDao::$gwFeatures[$feature]["delete"]; if(is_array($valueArray)){ + //merge if array $valueArray = array_merge(array($function, $uid), $valueArray); }else{ - $valueArray = array($function, $uid); + if(!empty($valueArray)){ + //add if single value + $valueArray = array($function, $uid, $valueArray); + } + else{ + //omit otherwise + $valueArray = array($function, $uid); + } } $result = call_user_func_array(array($this->groupwarePluginRef, 'rpcExec'), $valueArray); @@ -382,10 +402,10 @@ class GroupwareDao{ "type"=>"user" ); if(empty($fAcl)){ - $resultArr[$fName]["acls"]["acl"] = GROUPWARE_RIGHTS_NONE; + $resultArr[$fName]["acls"] = GROUPWARE_RIGHTS_NONE; } else{ - $resultArr[$fName]["acls"]["acl"] = $folderAclDef[$fAcl]; + $resultArr[$fName]["acls"] = $folderAclDef[$fAcl]; } $resultArr[$fName]["acls"][] = $aclLine; }