Commit c1516243 authored by IKEDA Soji's avatar IKEDA Soji
Browse files

Updating user crashes due to missing serialization of structured attributes.

parent b115e716
......@@ -682,6 +682,13 @@ sub update_global_user {
} elsif ($field eq 'data' and ref $value eq 'HASH') {
$set = sprintf '%s=%s', $map_field{$field},
$sdm->quote(Sympa::Tools::Data::hash_2_string($value));
} elsif ($field eq 'attributes' and ref $value eq 'HASH') {
$set = sprintf '%s=%s', $map_field{$field},
$sdm->quote(
join '__ATT_SEP__',
map { sprintf '%s__PAIRS_SEP__%s', $_, $value->{$_} }
sort keys %$value
);
} else {
$set = sprintf '%s=%s', $map_field{$field}, $sdm->quote($value);
}
......
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