mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 09:59:06 +01:00
LSformElement::supannCompositeAttribute: fix checking components value
LSformRule :: validate_values() expected an array of values and not a unique value
This commit is contained in:
parent
c97d47ac00
commit
99f83f326d
1 changed files with 1 additions and 1 deletions
|
@ -472,7 +472,7 @@ class LSformElement_supannCompositeAttribute extends LSformElement {
|
||||||
if (isset($cconf['check_data']) && is_array($cconf['check_data'])) {
|
if (isset($cconf['check_data']) && is_array($cconf['check_data'])) {
|
||||||
LSsession :: loadLSclass('LSformRule', null, true);
|
LSsession :: loadLSclass('LSformRule', null, true);
|
||||||
foreach($cconf['check_data'] as $ruleType => $rconf) {
|
foreach($cconf['check_data'] as $ruleType => $rconf) {
|
||||||
$cerrors = LSformRule :: validate_values($ruleType, $value, $rconf, $this);
|
$cerrors = LSformRule :: validate_values($ruleType, array($value), $rconf, $this);
|
||||||
if (is_array($cerrors))
|
if (is_array($cerrors))
|
||||||
foreach ($cerrors as $cerror)
|
foreach ($cerrors as $cerror)
|
||||||
$errors[] = getFData(
|
$errors[] = getFData(
|
||||||
|
|
Loading…
Reference in a new issue