summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-07-19 21:52:59 +0000
committerlpsolit%gmail.com <>2005-07-19 21:52:59 +0000
commit59b918bbce20a2258d25443bb01dbd99255f1d54 (patch)
tree945bfaa050e8fb98967e1616a55f4e35b74039b1 /editclassifications.cgi
parentBug 300709: Avoid the use of SELECT * - Patch by Frédéric Buclin <LpSolit@g... (diff)
downloadbugzilla-59b918bbce20a2258d25443bb01dbd99255f1d54.tar.gz
bugzilla-59b918bbce20a2258d25443bb01dbd99255f1d54.tar.bz2
bugzilla-59b918bbce20a2258d25443bb01dbd99255f1d54.zip
Bug 265188: GenerateVersionTable should only overwrite versioncache if it's changed - Patch by Frédéric Buclin <LpSolit@gmail.com> r=glob,justdave a=justdave
Diffstat (limited to 'editclassifications.cgi')
-rwxr-xr-xeditclassifications.cgi5
1 files changed, 4 insertions, 1 deletions
diff --git a/editclassifications.cgi b/editclassifications.cgi
index 5c01616b6..737db21d5 100755
--- a/editclassifications.cgi
+++ b/editclassifications.cgi
@@ -308,6 +308,8 @@ if ($action eq 'update') {
SET name=? WHERE id=?");
$sth->execute($classification,$classification_id);
$vars->{'updated_classification'} = 1;
+
+ unlink "$datadir/versioncache";
}
if ($description ne $descriptionold) {
@@ -316,11 +318,12 @@ if ($action eq 'update') {
WHERE id=?");
$sth->execute($description,$classification_id);
$vars->{'updated_description'} = 1;
+
+ unlink "$datadir/versioncache";
}
$dbh->bz_unlock_tables();
- unlink "$datadir/versioncache";
LoadTemplate($action);
}