From 08be860981df9f6967db7aaf659054ac0c0f8387 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 21 Feb 2008 13:00:07 +0000 Subject: [PATCH] Updated Printer PPD saving. -Renaming works now git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9017 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc b/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc index c0223ebeb..d9aa3196c 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc @@ -741,12 +741,12 @@ class printgeneric extends plugin $this->PPDdialogToSave = new printerPPDDialog($this->config, $this->dn,$this->gotoPrinterPPD); $this->PPDdialogToSave->cn = $this->cn; $this->PPDdialogToSave->generateProperties(); - $this->PPDdialogToSave->update_ppd_url(); + $this->gotoPrinterPPD = $this->PPDdialogToSave->update_ppd_url(); } } /* 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(); @@ -760,7 +760,7 @@ class printgeneric extends plugin } /* If no ppd is selected, remove this attribute */ - if(!empty($this->gotoPrinterPPD)) { + if(!empty($this->gotoPrinterPPD) && $this->initially_was_account) { $this->gotoPrinterPPD = $method.str_replace("//","/",$_SERVER['SERVER_NAME']."/ppd/".$this->gotoPrinterPPD); }else{ $this->gotoPrinterPPD = array(); -- 2.30.2