Code

Re-Enabled sorting
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 22 Jan 2010 16:06:46 +0000 (16:06 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 22 Jan 2010 16:06:46 +0000 (16:06 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15269 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_sortableListing.inc
gosa-core/plugins/personal/generic/class_user.inc
gosa-core/plugins/personal/posix/class_posixAccount.inc

index 7d12f4878cbea635510366f2966057b571777804..b0539c2029bdd44afafb947aade2339d0eff0466 100644 (file)
@@ -327,6 +327,15 @@ class sortableListing {
         $this->sortData();
       }
     }
+  }
+
+
+  public function save_object()
+  {
+    // Do not do anything if this is not our PID, or there's even no PID available...
+    if(!isset($_REQUEST['PID']) || $_REQUEST['PID'] != $this->id) {
+      return;
+    }
 
     // Do not do anything if we're not posted - or have no permission
     if (strpos($this->acl, 'w') !== false && isset($_POST['reorder_'.$this->id])){
index 36dbd589a3fc2250de948ffaf371b1e0337c6b1a..062bccb0441ee89130d6cd9d6df700237c9ddf5a 100644 (file)
@@ -261,6 +261,7 @@ class user extends plugin
 
     /* Set list ACL */
     $this->gosaLoginRestrictionWidget->setAcl($this->getacl('gosaLoginRestriction', (!is_object($this->parent) && !session::is_set('edit'))));
+    $this->gosaLoginRestrictionWidget->update();
 
     /* Handle add/delete for restriction mode */
     if (isset($_POST['add_res']) && isset($_POST['res'])) {
@@ -755,7 +756,7 @@ class user extends plugin
       plugin::save_object ();
 
       /* Sync lists */
-      $this->gosaLoginRestrictionWidget->update();
+      $this->gosaLoginRestrictionWidget->save_object();
       if ($this->gosaLoginRestrictionWidget->isModified()) {
         $this->gosaLoginRestriction= $this->gosaLoginRestrictionWidget->getMaintainedData();
       }
index a3dbf1f1d1b7e8bc0dfff1122392f40ab80af9d7..015c1af48773cc0f99c459d4181dcb69b7ddd763 100644 (file)
@@ -284,6 +284,7 @@ class posixAccount extends plugin
 
     /* Assign list acl */
     $this->groupMembershipList->setAcl($this->getacl('memberUid', (!is_object($this->parent) && !session::is_set('edit'))));
+    $this->groupMembershipList->update();
 
     /* Log view */
     if($this->is_account && !$this->view_logged){
@@ -738,7 +739,7 @@ class posixAccount extends plugin
       plugin::save_object();
 
       /* Maintain list */
-      $this->groupMembershipList->update();
+      $this->groupMembershipList->save_object();
 
       /* Save force GID checkbox */
       if($this->acl_is_writeable("gidNumber") || $this->acl_is_writeable("uidNumber")){