From e0b9454d6021dd67732908e0d6d2bc9221fa110f Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 21 Oct 2005 06:12:26 +0000 Subject: [PATCH] New printers wasn't saved git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1645 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_printGeneric.inc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc index e75ad359b..faa401561 100644 --- a/plugins/admin/systems/class_printGeneric.inc +++ b/plugins/admin/systems/class_printGeneric.inc @@ -145,8 +145,13 @@ class printgeneric extends plugin } } - - + /* A printer was only saved if the printer belongs to a workstation. + * If there was a new single printer created, it was never saved. + * -This allows new printers to be saved. + */ + if($this->dn == "new"){ + $this->is_account = true; + } } function execute() -- 2.30.2