Code

Updated acls, fixed typo.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 22 Aug 2007 09:23:45 +0000 (09:23 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 22 Aug 2007 09:23:45 +0000 (09:23 +0000)
Updated post handling for gotomasses

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7105 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/addons/gotomasses/class_goto_task.inc
plugins/admin/groups/acl_definition.inc

index a92b93eadde4f544d418ccd99d16d18902cc2e28..bc2a1826369ea0d2313274a6837a415229d1a563 100644 (file)
@@ -247,6 +247,14 @@ class goto_task extends plugin
   {
     if(isset($_POST['goto_task_posted'])){
       plugin::save_object();
+      foreach($this->attributes as $attr){
+        if(in_array($attr,array("Initial_Target","Target"))){
+          continue;
+        }
+        if(isset($_POST[$attr])){
+          $this->$attr = get_post($attr);
+        }
+      }
     }
   }  
 
index c992a9b4e86b925ea1ef745bdc3defe45d09ca39..c0fe178f8653fa6af4e8457647a48d1855572c5b 100644 (file)
@@ -454,6 +454,6 @@ $ACLD['scalix']     = array(
                "scalixLimitInboundMail"        => _("Limit inbound"),
                "scalixLimitNotifyUser"         => _("Notify user"),
                "scalixEmailAddress"            => _("Scalix email addresses"));
-$ACLD['gotomasses'] array("create" => _("Create/edit new task"),"remove" => _("Remove tasks"));
+$ACLD['gotomasses']=array("create" => _("Create/edit new task"),"remove" => _("Remove tasks"));
 $ACLD['mimetype'] = array("create","remove","cn","gotoMimeApplication","gotoMimeLeftClickAction","gotoMimeIcon","description","gotoMimeFilePattern","gotoMimeEmbeddedApplication","gotoMimeGroup","gotoMimeFilePattern","gotoMimeApplication","gotoMimeEmbeddedApplication");
 ?>