From 9ae356d7ce269f120c815705f41e93e266d5a75a Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sat, 21 Feb 2009 00:26:03 +0000 Subject: =?UTF-8?q?Bug=20479345:=20Field::Choice->update=20returns=20incor?= =?UTF-8?q?rect=20data=20in=20list=20context,=20leading=20group=20settings?= =?UTF-8?q?=20changes=20to=20crash=20-=20Patch=20by=20Fr=C3=83=C2=A9d?= =?UTF-8?q?=C3=83=C2=A9ric=20Buclin=20=20r/a=3Dmkanat?= 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(-) 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.1