From a64fdeb4ee2ce3d3757f9bdd87def70d1e82036e Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Thu, 21 Mar 2013 23:35:59 +0800 Subject: Bug 853451: "not implemented" error when updating a bug with the "locale" multi-select field visible --- extensions/Push/lib/Serialise.pm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'extensions') diff --git a/extensions/Push/lib/Serialise.pm b/extensions/Push/lib/Serialise.pm index ad1cc0452..568a64f12 100644 --- a/extensions/Push/lib/Serialise.pm +++ b/extensions/Push/lib/Serialise.pm @@ -131,6 +131,11 @@ sub _integer { return $value + 0; } +sub _array { + my ($value) = @_; + return defined($value) ? $value : []; +} + sub _custom_field { my ($field, $value) = @_; $field = Bugzilla::Field->new({ name => $field }) unless blessed $field; @@ -142,8 +147,7 @@ sub _custom_field { return _select($value); } elsif ($field->type == FIELD_TYPE_MULTI_SELECT) { - # XXX - die "not implemented"; + return _array($value); } else { return _string($value); -- cgit v1.2.3-24-g4f1b