summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: da39a69)
raw | patch | inline | side by side (parent: da39a69)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 4 Oct 2005 12:06:02 +0000 (12:06 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 4 Oct 2005 12:06:02 +0000 (12:06 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1466 594d385d-05f5-0310-b6e9-bd551577e9d8
index 8e4513d7fb97d82c06bc5cb96335cc386d744d6f..e3ee13884290e442b9094a2fcdab36c4212efe2d 100644 (file)
$a_return=array();
foreach($this->SubObjects as $obj){
if($obj['status'] != "delete"){
- $a_return[$obj['cn']]= $obj['cn']." [".$obj['description']."]";
+ if((isset($obj['description']))&&(!empty($obj['description']))){
+ $a_return[$obj['cn']]= $obj['cn']." [".$obj['description']."]";
+ }else{
+ $a_return[$obj['cn']]= $obj['cn'];
+ }
}
}
return($a_return);
{
$message= array();
$str = utf8_encode("üöä");
- if((empty($this->description))||(preg_match("/[^a-z0-9".$str."\.,;:\-_\? ]/i",$this->description))){
+ if(preg_match("/[^a-z0-9".$str."\.,;:\-_\? ]/i",$this->description)){
$message[]=_("Please enter a valid description.");
}
return ($message);
$ldap->modify($tmp);
$this->handle_post_events("modify");
}elseif($obj['status']=="new"){
+ if($tmp['description']==array()){
+ unset($tmp['description']);
+ }
$ldap->cd($this->config->current['BASE']);
$ldap->create_missing_trees(preg_replace('/^[^,]+,/', '', $this->dn));
$ldap->cd($sub_dn);
diff --git a/plugins/admin/fai/class_faiScriptEntry.inc b/plugins/admin/fai/class_faiScriptEntry.inc
index 903230055977e3de746c576b549f0be8bc5e72ca..ebaf792f41f74a5d3b5c7e6cc233e2f2d2781b1f 100644 (file)
$message[]=_("Please specify a script.");
}
- if(empty($this->Object_description)){
- $message[] = _("Please enter a description.");
- }
-
if(preg_match("/[^a-z0-9".$str."\.,;:\-_\? ]/i",$this->Object_description)){
$message[] = _("Invalid character in description. Please enter a valid description.");
}
index 23345a41627b7537d5f0ecaf661e1e38595a8d4e..7896626c7f0e3e344c1d87db8dd671d2544a5ff5 100644 (file)
<tr>
<td>
<LABEL for="cn">
- {t}Name{/t}
+ {t}Name{/t}{$must}
</LABEL>
</td>
<td>
<tr>
<td>
<LABEL for="description">
- {t}Description{/t}{$must}
+ {t}Description{/t}
</LABEL>
</td>
<td>
index a410994a4982c33dcb350a337db8ab7c6d63ee41..7f6b7ada08836ab4b1afe7b899c36f31797bc082 100644 (file)
</tr>
<tr>
<td>
- {t}Description{/t}{$must}
+ {t}Description{/t}
</td>
<td>
<input size=40 value="{$Object_description}" name="Object_description">