Commit bcd1c34b authored by Côme Chilliet's avatar Côme Chilliet

Fixes #5292 Refuse non-array values for multivaluated attributes (should only concern webservice)

parent 2e11422f
......@@ -132,6 +132,9 @@ class SetAttribute extends Attribute
if (!empty($error) || ($this->attribute === FALSE)) {
return $error;
} else {
if (!is_array($this->value)) {
return sprintf(_('The value for multivaluated field "%s" is not an array'), $this->getLabel());
foreach ($this->value as $value) {
$error = $this->attribute->check();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment