summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5c61aa5)
raw | patch | inline | side by side (parent: 5c61aa5)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 10 Jan 2007 11:55:13 +0000 (11:55 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 10 Jan 2007 11:55:13 +0000 (11:55 +0000) |
Added fix from stable revision 5703
Do not allow spaces within class names.
Remember entered class name in "aslclassname" dialog
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5514 594d385d-05f5-0310-b6e9-bd551577e9d8
Do not allow spaces within class names.
Remember entered class name in "aslclassname" dialog
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5514 594d385d-05f5-0310-b6e9-bd551577e9d8
index 526b6a587a2be3b450d087100ef0cd4d92ce3842..f972210a762f2e9827dcb9da15a84544fdc4db34 100644 (file)
<tr>
<td> </td>
<td>
- {t}Class name{/t} <input type="text" name="UseTextInputName" value="" style="width:120px;">
+ {t}Class name{/t} <input type="text" name="UseTextInputName" value="{$ClassName}" style="width:120px;">
</td>
</tr>
</table>
index b9f854f75a252d29009b5b85cb4080344621a959..3486cc3c4de40883a99da6dbfc1d718d39810c97 100644 (file)
$smarty->assign("grey", "");
}
$smarty->assign("ClassNames", $used);
+ $smarty->assign("ClassName", $this->ClassName);
$display.= $smarty->fetch(get_template_path('askClassName.tpl', TRUE));
return($display);
}
/* Call common method to give check the hook */
$message= plugin::check();
+ if($this->ClassName != preg_replace("/ /","",trim($this->ClassName))){
+ $message[] = _("Spaces are not allowed within class names.");
+ }
+
if(empty($this->ClassName)){
$message[]=_("The given class name is empty.");
}
index 51df0c833059591b5a09707b3f16296f4c146749..8b2cc7e833fe3e86a1a798685f9b0000111c84b7 100644 (file)
$dsc= "";
if (preg_match('/^-/', $usedName)){
$dsc= " - "._("Package marked for removal");
- $usedName2= preg_replace('/^-/', '! ', $usedName);
+ // Generally a bad idea here, because the toggel triggers on -, not on !
+ //$usedName= preg_replace('/^-/', '! ', $usedName);
}else{
$usedName2= $usedName;
}
diff --git a/plugins/admin/fai/class_faiPartitionTableEntry.inc b/plugins/admin/fai/class_faiPartitionTableEntry.inc
index 57dc434b95679a64eff5249ca8f921e3196d0669..9122d6c3ced763b02d45607435addbdce7b0e17e 100644 (file)
if((isset($_POST['TableEntryFrameSubmitted'])) && ($this->FAIstate != "freeze") ){
- print_a($_POST);
plugin::save_object();
foreach($this->partitions as $key => $part){
break;
case 2:
- if((!is_id($tmp[0]))||(!is_id($tmp[1]))){
+ if((!is_id($tmp[0]))&&(!is_id($tmp[1]))){
$message[]=sprintf(_("Please enter a valid range for partition %s."),($key));
}elseif($tmp[0]>=$tmp[1]){
$message[]=sprintf(_("Please enter a valid range for partition %s."),($key));