From 99f83f326d99ea7d56588b4422e0f90d7215b798 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Wed, 24 May 2023 12:00:51 +0200 Subject: [PATCH] LSformElement::supannCompositeAttribute: fix checking components value LSformRule :: validate_values() expected an array of values and not a unique value --- .../class/class.LSformElement_supannCompositeAttribute.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/includes/class/class.LSformElement_supannCompositeAttribute.php b/src/includes/class/class.LSformElement_supannCompositeAttribute.php index cbf95d2e..b0494791 100644 --- a/src/includes/class/class.LSformElement_supannCompositeAttribute.php +++ b/src/includes/class/class.LSformElement_supannCompositeAttribute.php @@ -472,7 +472,7 @@ class LSformElement_supannCompositeAttribute extends LSformElement { if (isset($cconf['check_data']) && is_array($cconf['check_data'])) { LSsession :: loadLSclass('LSformRule', null, true); 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)) foreach ($cerrors as $cerror) $errors[] = getFData(