From: cajus Date: Wed, 31 May 2006 10:36:00 +0000 (+0000) Subject: Added support for comments in divlist X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=543a94fb8acb261e60a144b969ee50d169592fbc;p=gosa.git Added support for comments in divlist Updated printer settings to have labeledURI as a must field git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3580 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_divListSystem.inc b/plugins/admin/systems/class_divListSystem.inc index d36f76051..b58169262 100644 --- a/plugins/admin/systems/class_divListSystem.inc +++ b/plugins/admin/systems/class_divListSystem.inc @@ -159,10 +159,14 @@ class divListSystem extends MultiSelectWindow $val['cn'][0]= preg_replace('/\$$/', '', $val['cn'][0]); // Generate Array to Add + $dsc= ""; + if (isset($val['description'][0])){ + $dsc= " [".$val['description'][0]."]"; + } if((isset($val['is_new']))&&(!empty($val['is_new']))){ - $display= "".$val["cn"][0]." ".$val['is_new']; + $display= $val["cn"][0]." ".$val['is_new'].$dsc; }else{ - $display= "".$val["cn"][0].""; + $display= $val["cn"][0].$dsc; } if((in_array("gotoTerminal",$val['objectClass']))||(in_array("gotoWorkstation",$val['objectClass']))){ diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc index b5fc45341..7c51299fe 100644 --- a/plugins/admin/systems/class_printGeneric.inc +++ b/plugins/admin/systems/class_printGeneric.inc @@ -602,6 +602,11 @@ class printgeneric extends plugin $message[]= "The required field 'Printer name' is not set."; } + /* must: labeledURI */ + if(empty($this->labeledURI)){ + $message[]= "The required field 'Printer URL' is not set."; + } + /* Check if there is already an entry with this cn*/ if (($this->orig_dn != $dn)&&($this->BelongsTo == "Printer")){ $ldap= $this->config->get_ldap_link(); diff --git a/plugins/admin/systems/printer.tpl b/plugins/admin/systems/printer.tpl index a7582b45d..808d47f74 100644 --- a/plugins/admin/systems/printer.tpl +++ b/plugins/admin/systems/printer.tpl @@ -40,7 +40,7 @@ - + {$must}