summaryrefslogtreecommitdiffstats
path: root/editversions.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-10-10 06:24:36 +0200
committerlpsolit%gmail.com <>2007-10-10 06:24:36 +0200
commit7d05707cc6db24a30dc9325cd0f2cfe3d78d7440 (patch)
tree62412b2cd26943f4d0b26a2f66ec97599b7f7f64 /editversions.cgi
parent24a90239690d3c59538cb4044bc31411efd83464 (diff)
downloadbugzilla-7d05707cc6db24a30dc9325cd0f2cfe3d78d7440.tar.gz
bugzilla-7d05707cc6db24a30dc9325cd0f2cfe3d78d7440.tar.xz
Bug 398968: editversions.cgi should use transactions for database interaction - Patch by Emmanuel Seyman <eseyman@linagora.com> r/a=mkanat
Diffstat (limited to 'editversions.cgi')
-rwxr-xr-xeditversions.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/editversions.cgi b/editversions.cgi
index 54f87457b..223f1f555 100755
--- a/editversions.cgi
+++ b/editversions.cgi
@@ -213,11 +213,11 @@ if ($action eq 'update') {
my $version = Bugzilla::Version->check({ product => $product,
name => $version_old_name });
- $dbh->bz_lock_tables('bugs WRITE', 'versions WRITE');
+ $dbh->bz_start_transaction();
$vars->{'updated'} = $version->update($version_name, $product);
- $dbh->bz_unlock_tables();
+ $dbh->bz_commit_transaction();
delete_token($token);
$vars->{'version'} = $version;