Code

Updated plugin::cleanup()
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 9 Aug 2007 06:59:14 +0000 (06:59 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 9 Aug 2007 06:59:14 +0000 (06:59 +0000)
Cleanup will now also update itself too.

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

include/class_plugin.inc

index f9a5b3a7878a94980514534ced443d0f9b2dd0a0..5f2a567b741e14943f12e995f8806ad7fdf11580 100644 (file)
@@ -383,6 +383,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 */