summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;