Code

Updated cleanup.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 9 Aug 2007 06:55:55 +0000 (06:55 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 9 Aug 2007 06:55:55 +0000 (06:55 +0000)
Attributes changed in $this->attrs will now be unpdated in saved_attributes too

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

include/class_plugin.inc

index 5377436705ff16c15264bd2ddf74fb6b4901c3d2..8bb0a2ce35e9e631fe63b40968e17e49f6408184 100644 (file)
@@ -398,6 +398,11 @@ class plugin
         }
       }
     }
+
+    /* Update saved attributes and ensure that next cleanups will be successful too */
+    foreach($this->attrs as $name => $value){
+      $this->saved_attributes[$name] = $value;
+    }
   }
 
   /* Check formular input */