summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 989dbe2)
raw | patch | inline | side by side (parent: 989dbe2)
author | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 27 May 2011 11:06:36 +0000 (11:06 +0000) | ||
committer | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 27 May 2011 11:06:36 +0000 (11:06 +0000) |
- Use 'Device name' as string in error messages for wrong device name
attributes
- In the error message for an errornous description print the actual
value of the description in the message and not the device name
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@20897 594d385d-05f5-0310-b6e9-bd551577e9d8
attributes
- In the error message for an errornous description print the actual
value of the description in the message and not the device name
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@20897 594d385d-05f5-0310-b6e9-bd551577e9d8
trunk/gosa-plugins/goto/admin/devices/class_deviceGeneric.inc | patch | blob | history |
diff --git a/trunk/gosa-plugins/goto/admin/devices/class_deviceGeneric.inc b/trunk/gosa-plugins/goto/admin/devices/class_deviceGeneric.inc
index cd83d097eef8294095971a63e1fbc34e89feb6ae..3f5364e1eaa434f759f645d363ffaba8897f5a56 100644 (file)
$message = plugin::check();
if($this->cn == "" ||(preg_match("/[^a-z0-9]/i",$this->cn))){
- $message[]= msgPool::invalid(_("Name"),$this->cn,"/^[a-z0-9]*$/i");
+ $message[]= msgPool::invalid(_("Device name"),$this->cn,"/^[a-z0-9]*$/i");
}
if(preg_match("/[^a-z0-9!\"?.,;:-_\(\) ]/i",$this->description)){
- $message[]= msgPool::invalid(_("Description"),$this->cn,"/^[a-z0-9!\"?.,;:-_\(\) ]*$/i");
+ $message[]= msgPool::invalid(_("Description"),$this->description,"/^[a-z0-9!\"?.,;:-_\(\) ]*$/i");
}
/* Skip serial check if vendor and product id are given */