From: hickert Date: Wed, 16 Apr 2008 12:10:25 +0000 (+0000) Subject: Updated Enviroment->Printer settings X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3c635e52dd5a36f4ef1ef1ee5eee6ae86cf42746;p=gosa.git Updated Enviroment->Printer settings -Printer assignements were not removed, if the printer was in a different department. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10505 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/personal/environment/class_environment.inc b/gosa-plugins/goto/personal/environment/class_environment.inc index 292fc5788..0c2356eba 100644 --- a/gosa-plugins/goto/personal/environment/class_environment.inc +++ b/gosa-plugins/goto/personal/environment/class_environment.inc @@ -1173,6 +1173,7 @@ class environment extends plugin } /* Remove old entries */ + $ldap->cd($this->config->current['BASE']);; $ldap->search("(&(objectClass=gotoPrinter)(goto".$s_suffix."Printer=".$this->$useVar."))",array("*")); while($attr = $ldap->fetch()){ $printerObj = NULL; @@ -1182,6 +1183,7 @@ class environment extends plugin $printerObj->by_object['printgeneric']->save(); } + $ldap->cd($this->config->current['BASE']);; $ldap->search("(&(objectClass=gotoPrinter)(goto".$s_suffix."AdminPrinter=".$this->$useVar."))",array("*")); while($attr = $ldap->fetch()){ $printerObj = NULL;