From ce4722f79c3cb4057391284a504aed71943ec1a4 Mon Sep 17 00:00:00 2001 From: psc Date: Thu, 18 Jun 2009 12:57:11 +0000 Subject: [PATCH] Fix device driver upload by handling the special case 'new' properly (without copying empty files) (Trac: #2715) git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13729 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc b/trunk/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc index fb04c5772..0337e49fa 100644 --- a/trunk/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc +++ b/trunk/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc @@ -778,7 +778,7 @@ class printgeneric extends plugin if($this->PPDdialogToSave && is_object($this->PPDdialogToSave)){ $this->PPDdialogToSave->save_ppd(); } - if($this->orig_dn != $this->dn){ + if($this->orig_dn != "new" && $this->orig_dn != $this->dn){ if(!empty($this->gotoPrinterPPD)) { $this->PPDdialogToSave = new printerPPDDialog($this->config, $this->dn,$this->gotoPrinterPPD); $this->PPDdialogToSave->cn = $this->cn; -- 2.30.2