From 9ae356d7ce269f120c815705f41e93e266d5a75a Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sat, 21 Feb 2009 00:26:03 +0000 Subject: [PATCH] =?utf8?q?Bug=20479345:=20Field::Choice->update=20returns?= =?utf8?q?=20incorrect=20data=20in=20list=20context,=20leading=20group=20s?= =?utf8?q?ettings=20changes=20to=20crash=20-=20Patch=20by=20Fr=C3=83=C2=A9?= =?utf8?q?d=C3=83=C2=A9ric=20Buclin=20=20r/a=3Dmkanat?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 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 00fa52f993..5f1578d2b0 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 { -- 2.47.3