mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-18 00:09:06 +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) {
|
||||
$ruleType="LSformRule_".$rule['name'];
|
||||
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;
|
||||
$this -> setElementError($this -> elements[$element],$rule['options']['msg']);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue