From: hickert Date: Thu, 21 Feb 2008 10:53:54 +0000 (+0000) Subject: Updated printGeneric X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f342e3d6d832b574c34df2f335d95f5488b41547;p=gosa.git Updated printGeneric -Fixed saving of ppds git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@9013 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc index af25e10e8..86d22bab1 100644 --- a/plugins/admin/systems/class_printGeneric.inc +++ b/plugins/admin/systems/class_printGeneric.inc @@ -721,7 +721,7 @@ class printgeneric extends plugin if($this->PPDdialogToSave){ $this->PPDdialogToSave->save_ppd(); } - if($this->orig_dn != $this->dn){ + if($this->orig_dn != $this->dn && $this->initially_was_account){ if(!empty($this->gotoPrinterPPD)) { $this->PPDdialogToSave = new printerPPDDialog($this->config, $this->dn,$this->gotoPrinterPPD); $this->PPDdialogToSave->cn = $this->cn; @@ -731,7 +731,7 @@ class printgeneric extends plugin } /* Remove previously selected ppd file.*/ - if($this->initial_PPD != $this->gotoPrinterPPD){ + if($this->initial_PPD != $this->gotoPrinterPPD && $this->initially_was_account){ if(!empty($this->initial_PPD)){ $tmp = new printerPPDDialog($this->config, $this->dn,$this->initial_PPD); $tmp->removeModifiedPPD();