Commit 6d422611 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

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

parent ba47d751
......@@ -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();
Supports Markdown
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