]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 479345: Field::Choice->update returns incorrect data in list context, leading...
authorlpsolit%gmail.com <>
Sat, 21 Feb 2009 00:26:03 +0000 (00:26 +0000)
committerlpsolit%gmail.com <>
Sat, 21 Feb 2009 00:26:03 +0000 (00:26 +0000)
Bugzilla/Field/Choice.pm

index 00fa52f9930d486f3ccf4888c1e6aef45403f9db..5f1578d2b02ea27e88659aa7c3cc822d7eda1a99 100644 (file)
@@ -171,7 +171,7 @@ sub update {
     }
 
     $dbh->bz_commit_transaction();
-    return $changes;
+    return wantarray ? ($changes, $old_self) : $changes;
 }
 
 sub remove_from_db {