will allow updating 1 member single Complementary Attribute without specifying complementary attributes that we don't want to change. Similar to # 29115 but just for a member

This commit is contained in:
Jon Bendtsen 2024-04-01 12:37:05 +02:00
parent 027cf37940
commit c55c0284b1

View file

@ -349,7 +349,12 @@ class Members extends DolibarrApi
$member->context['caller'] = $request_data['caller'];
continue;
}
if ($field == 'array_options' && is_array($value)) {
foreach ($value as $index => $val) {
$member->array_options[$index] = $val;
}
continue;
}
// Process the status separately because it must be updated using
// the validate(), resiliate() and exclude() methods of the class Adherent.
if ($field == 'statut') {