Code

Run code to update printer objects not only when a printer is added
authorwolffc <wolffc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 13 Sep 2010 14:45:24 +0000 (14:45 +0000)
committerwolffc <wolffc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 13 Sep 2010 14:45:24 +0000 (14:45 +0000)
or removed, but also in case the group name changes

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

trunk/gosa-plugins/goto/personal/environment/class_environment.inc

index 9db2031f739271aecabcddac05fc13a3a5384c8e..b809805b5067557383e7aba94f458f525d0d1d78 100644 (file)
@@ -1208,7 +1208,7 @@ class environment extends plugin
     
     $this->detect_grouptype();
 
-    if($this->add_del_printer_member_was_called){
+    if($this->add_del_printer_member_was_called || $this->OrigCn != $this->cn){
 
       $types = array( "gotoUserPrinter"       => "AddUser",
           "gotoGroupPrinter"      => "AddGroup",