summaryrefslogtreecommitdiffstats
path: root/editversions.cgi
diff options
context:
space:
mode:
authorSunil Joshi <joshi_sunil@in.com>2013-09-26 04:04:59 +0200
committerSimon Green <sgreen@redhat.com>2013-09-26 04:04:59 +0200
commit646aa223346440a159effc37b0e6070832b1989a (patch)
treec13d4e15231869126bc3cabb179b006457883017 /editversions.cgi
parent2fe007151dd2d7caec031cd1fca617eac47f2549 (diff)
downloadbugzilla-646aa223346440a159effc37b0e6070832b1989a.tar.gz
bugzilla-646aa223346440a159effc37b0e6070832b1989a.tar.xz
Bug 714523 - editversions.cgi should use ->set_all
r=simon, a=simon
Diffstat (limited to 'editversions.cgi')
-rwxr-xr-xeditversions.cgi6
1 files changed, 4 insertions, 2 deletions
diff --git a/editversions.cgi b/editversions.cgi
index 1d056c67b..06f2f580c 100755
--- a/editversions.cgi
+++ b/editversions.cgi
@@ -188,8 +188,10 @@ if ($action eq 'update') {
$dbh->bz_start_transaction();
- $version->set_name($version_name);
- $version->set_is_active($isactive);
+ $version->set_all({
+ value => $version_name,
+ isactive => $isactive
+ });
my $changes = $version->update();
$dbh->bz_commit_transaction();