Commit 7d05707c authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 398968: editversions.cgi should use transactions for database interaction -…

Bug 398968: editversions.cgi should use transactions for database interaction - Patch by Emmanuel Seyman <eseyman@linagora.com> r/a=mkanat
parent 24a90239
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment