Code

Updated class environment
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 28 Apr 2010 11:59:21 +0000 (11:59 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 28 Apr 2010 11:59:21 +0000 (11:59 +0000)
-Allow to add printer while object is 'new'.

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

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

index 68126bd48833d9c90e62d914097887ac2706352d..204c721e65d04413d8903341abac141bcd5d6a70 100644 (file)
@@ -923,6 +923,8 @@ class environment extends plugin
               $type = "AddUser";
             }elseif(isset($this->NewDeletedPrinters[$pname])){
               $type = "AddUser";
+            }elseif($this->dn == "new"){  
+              $type = "AddUser";
             }elseif($printerObj->by_object['printgeneric']->AddMember("AddUser",$this->dn)){
               $type = "AddUser";
             }