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

Updating user crashes due to missing serialization of structured data.

parent 7164bc79
......@@ -679,6 +679,9 @@ sub update_global_user {
if ($numeric_field{$map_field{$field}}) {
$value ||= 0; ## Can't have a null value
$set = sprintf '%s=%s', $map_field{$field}, $value;
} 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));
} 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