aboutsummaryrefslogtreecommitdiffstats
path: root/editmilestones.cgi
diff options
context:
space:
mode:
authorjustdave%syndicomm.com <>2001-04-06 23:47:49 +0000
committerjustdave%syndicomm.com <>2001-04-06 23:47:49 +0000
commit15bbeca6392a314269ec3aadb1a949e65fc53fe4 (patch)
tree72be374db3c62cae2f49d5b2fa7289365f7a3834 /editmilestones.cgi
parent7a4cb31fe1e63aff5ecb9e2a8b9409e8fdc1171e (diff)
downloadbugs-15bbeca6392a314269ec3aadb1a949e65fc53fe4.tar
bugs-15bbeca6392a314269ec3aadb1a949e65fc53fe4.tar.gz
bugs-15bbeca6392a314269ec3aadb1a949e65fc53fe4.tar.bz2
bugs-15bbeca6392a314269ec3aadb1a949e65fc53fe4.tar.xz
bugs-15bbeca6392a314269ec3aadb1a949e65fc53fe4.zip
Fix for bug 74394: editmilestones.cgi can't edit the name and sortkey at the same time
Patch by slee@uk.bnsmc.com (Stephen Lee)
Diffstat (limited to 'editmilestones.cgi')
-rwxr-xr-xeditmilestones.cgi14
1 files changed, 7 insertions, 7 deletions
diff --git a/editmilestones.cgi b/editmilestones.cgi
index 9eadeeba2..57fe78830 100755
--- a/editmilestones.cgi
+++ b/editmilestones.cgi
@@ -513,6 +513,13 @@ if ($action eq 'update') {
milestones WRITE,
products WRITE");
+ if ($sortkey != $sortkeyold) {
+ SendSQL("UPDATE milestones SET sortkey=$sortkey
+ WHERE product=" . SqlQuote($product) . "
+ AND value=" . SqlQuote($milestoneold));
+ unlink "data/versioncache";
+ print "Updated sortkey.<BR>\n";
+ }
if ($milestone ne $milestoneold) {
unless ($milestone) {
print "Sorry, I can't delete the milestone text.";
@@ -541,13 +548,6 @@ if ($action eq 'update') {
unlink "data/versioncache";
print "Updated milestone.<BR>\n";
}
- if ($sortkey != $sortkeyold) {
- SendSQL("UPDATE milestones SET sortkey=$sortkey
- WHERE product=" . SqlQuote($product) . "
- AND value=" . SqlQuote($milestoneold));
- unlink "data/versioncache";
- print "Updated sortkey.<BR>\n";
- }
SendSQL("UNLOCK TABLES");
PutTrailer($localtrailer);