Code

Fixed repository acls
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 26 Sep 2006 06:32:15 +0000 (06:32 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 26 Sep 2006 06:32:15 +0000 (06:32 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4771 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servRepositorySetup.inc
plugins/admin/systems/servRepositorySetup.tpl

index 3ed15dfab94241b51f7085c9bad3784380a61024..f186bf912a499a6ae5f029c8362f8e1dcb801d4b 100644 (file)
@@ -128,8 +128,15 @@ class servRepositorySetup  extends plugin
 
   /* Save data to object */
   function save_object()
-  { 
-    plugin::save_object();
+  {
+    if(isset($_POST['servRepositorySetup_Posted'])) {
+  
+      foreach($this->attributes as $attr){
+        if(($this->parent->acl_is_writeable($attr)) && (isset($_POST[$attr]))){
+          $this->$attr = $_POST[$attr];      
+        }
+      }
+    }
   }
 
 
index 210d853c1e14e5fdaacb166c02e2fd8e997f3174..29691ec444a152d3ccda69a5f5cae6f7a983bc2a 100644 (file)
@@ -49,6 +49,7 @@
                </td>
        </tr>
 </table>
+<input type='hidden' name='servRepositorySetup_Posted' value='1'>
 <p class="plugbottom">
   <input type=submit name="repository_setup_save" value="{t}Apply{/t}">
   &nbsp;