diff options
author | lpsolit%gmail.com <> | 2009-02-21 01:26:03 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2009-02-21 01:26:03 +0100 |
commit | 9ae356d7ce269f120c815705f41e93e266d5a75a (patch) | |
tree | e93a704c1848fdc93f9bdc6a4d1c876f1f85eed3 /Bugzilla/Field | |
parent | 90ae4269f6b8b528e45fe8aee3fa6f5d0b1f102b (diff) | |
download | bugzilla-9ae356d7ce269f120c815705f41e93e266d5a75a.tar.gz bugzilla-9ae356d7ce269f120c815705f41e93e266d5a75a.tar.xz |
Bug 479345: Field::Choice->update returns incorrect data in list context, leading group settings changes to crash - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
Diffstat (limited to 'Bugzilla/Field')
-rw-r--r-- | Bugzilla/Field/Choice.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Field/Choice.pm b/Bugzilla/Field/Choice.pm index 00fa52f99..5f1578d2b 100644 --- a/Bugzilla/Field/Choice.pm +++ b/Bugzilla/Field/Choice.pm @@ -171,7 +171,7 @@ sub update { } $dbh->bz_commit_transaction(); - return $changes; + return wantarray ? ($changes, $old_self) : $changes; } sub remove_from_db { |