From 13fe4733f361856da17bf453988a70da52dab022 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 21 Feb 2008 12:45:11 +0000 Subject: [PATCH] Updated printer PPD handling. -Update gotoPrinterPPD path in ldap too, if entry was renamend. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@9014 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_printGeneric.inc | 3 ++- plugins/admin/systems/class_printerPPDDialog.inc | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc index 86d22bab1..00231de17 100644 --- a/plugins/admin/systems/class_printGeneric.inc +++ b/plugins/admin/systems/class_printGeneric.inc @@ -721,12 +721,13 @@ class printgeneric extends plugin if($this->PPDdialogToSave){ $this->PPDdialogToSave->save_ppd(); } + 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; $this->PPDdialogToSave->generateProperties(); - $this->PPDdialogToSave->update_ppd_url(); + $this->gotoPrinterPPD = $this->PPDdialogToSave->update_ppd_url(); } } diff --git a/plugins/admin/systems/class_printerPPDDialog.inc b/plugins/admin/systems/class_printerPPDDialog.inc index ac3aebc59..cf36067ae 100644 --- a/plugins/admin/systems/class_printerPPDDialog.inc +++ b/plugins/admin/systems/class_printerPPDDialog.inc @@ -491,6 +491,7 @@ class printerPPDDialog extends plugin function update_ppd_url() { $this->SelectPPD("modified/".$this->selectedPPD['link']); + return("modified/".$this->selectedPPD['link']); } function check() -- 2.30.2