From 59b918bbce20a2258d25443bb01dbd99255f1d54 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 19 Jul 2005 21:52:59 +0000 Subject: Bug 265188: GenerateVersionTable should only overwrite versioncache if it's changed - Patch by Frédéric Buclin r=glob,justdave a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- editclassifications.cgi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'editclassifications.cgi') 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); } -- cgit v1.2.3-24-g4f1b