Code

Fixed printer Saving
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 28 Mar 2008 09:57:35 +0000 (09:57 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 28 Mar 2008 09:57:35 +0000 (09:57 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10054 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc

index 01c9c349cd0339bcd1d5efc92c97a8d455486e0a..9e049f15bc0a3f51ad9139cdf500a503bdc0a90d 100644 (file)
@@ -40,7 +40,7 @@ class printgeneric extends plugin
 
   /* attribute list for save action */
   var $attributes     = array("cn", "description", "l", "labeledURI", "gotoPrinterPPD","gotoUserPrinter", "macAddress", 
-                              "gotoUserAdminPrinter","gotoGroupAdminPrinter","gotoUserPrinter","gotoGroupPrinter");
+                              "gotoUserAdminPrinter","gotoGroupAdminPrinter","gotoUserPrinter","gotoGroupPrinter","gosaUnitTag");
   var $objectclasses  = array("top", "gotoPrinter");
   var $view_logged    = FALSE;
   var $parent;
@@ -764,12 +764,13 @@ class printgeneric extends plugin
     }
 
     $dn= $this->dn;
-    plugin::save();
-    $ldap= $this->config->get_ldap_link();
 
     /* reduce objectClasses to minimun */
     $this->attrs['objectClass']= $this->objectclasses;
 
+    plugin::save();
+    $ldap= $this->config->get_ldap_link();
+
     /* Remove all empty values */
     if ($this->orig_dn == 'new'){
       $attrs= array();