mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-18 11:58:24 +01:00
"Fixed not working ignoring of validation errors via regular expressions (eg. forced fields in the etemplate editor)"
This commit is contained in:
parent
9c855b7383
commit
928ddd4912
@ -314,7 +314,8 @@
|
|||||||
if ($cname) $name = preg_replace('/^'.$cname.'\[([^\]]+)\](.*)$/','\\1\\2',$name);
|
if ($cname) $name = preg_replace('/^'.$cname.'\[([^\]]+)\](.*)$/','\\1\\2',$name);
|
||||||
|
|
||||||
// treat $ignoare_validation only as regular expression, if it starts with a slash
|
// treat $ignoare_validation only as regular expression, if it starts with a slash
|
||||||
if ($ignore_validation[0] == '/' && !preg_match($ignore_validation,$name) || $ignore_validation != $name)
|
if ($ignore_validation[0] == '/' && !preg_match($ignore_validation,$name) ||
|
||||||
|
$ignore_validation[0] != '/' && $ignore_validation != $name)
|
||||||
{
|
{
|
||||||
//echo "<p>uietemplate::validation_errors('$ignore_validation','$cname') name='$name' ($error) not ignored!!!</p>\n";
|
//echo "<p>uietemplate::validation_errors('$ignore_validation','$cname') name='$name' ($error) not ignored!!!</p>\n";
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user