From: psc Date: Thu, 18 Jun 2009 12:57:11 +0000 (+0000) Subject: Fix device driver upload by handling the special case X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ce4722f79c3cb4057391284a504aed71943ec1a4;p=gosa.git 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 --- 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;