summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-03-21 16:35:59 +0100
committerByron Jones <bjones@mozilla.com>2013-03-21 16:35:59 +0100
commita64fdeb4ee2ce3d3757f9bdd87def70d1e82036e (patch)
tree37a7c8fbf939729430f5845b256240789f410581
parentf19bc912f3d45ac6316fd005ce1053e167767e42 (diff)
downloadbugzilla-a64fdeb4ee2ce3d3757f9bdd87def70d1e82036e.tar.gz
bugzilla-a64fdeb4ee2ce3d3757f9bdd87def70d1e82036e.tar.xz
Bug 853451: "not implemented" error when updating a bug with the "locale" multi-select field visible
-rw-r--r--extensions/Push/lib/Serialise.pm8
1 files changed, 6 insertions, 2 deletions
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);