mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-18 08:19:05 +01:00
LSform: fix call of LSformRules validate method to provide LSformElement by ref
This commit is contained in:
parent
4c1c7b2fae
commit
5b9e6409f4
1 changed files with 1 additions and 1 deletions
|
@ -367,7 +367,7 @@ class LSform extends LSlog_staticLoggerClass {
|
||||||
foreach($this -> _rules[$element] as $rule) {
|
foreach($this -> _rules[$element] as $rule) {
|
||||||
$ruleType="LSformRule_".$rule['name'];
|
$ruleType="LSformRule_".$rule['name'];
|
||||||
LSsession :: loadLSclass($ruleType);
|
LSsession :: loadLSclass($ruleType);
|
||||||
if (! call_user_func_array(array( $ruleType,'validate') , array($value, $rule['options'], $this -> getElement($element)))) {
|
if (! call_user_func_array(array( $ruleType,'validate') , array($value, $rule['options'], &$this -> elements[$element]))) {
|
||||||
$retval=false;
|
$retval=false;
|
||||||
$this -> setElementError($this -> elements[$element],$rule['options']['msg']);
|
$this -> setElementError($this -> elements[$element],$rule['options']['msg']);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue