From 9ae356d7ce269f120c815705f41e93e266d5a75a Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sat, 21 Feb 2009 00:26:03 +0000 Subject: Bug 479345: Field::Choice->update returns incorrect data in list context, leading group settings changes to crash - Patch by Frédéric Buclin r/a=mkanat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Field/Choice.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla/Field') 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 { -- cgit v1.2.3-24-g4f1b