]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 173581 - Changing milestone sortkeys is broken. Patch by gerv; r=bbaetz.
authorgerv%gerv.net <>
Thu, 10 Oct 2002 13:54:58 +0000 (13:54 +0000)
committergerv%gerv.net <>
Thu, 10 Oct 2002 13:54:58 +0000 (13:54 +0000)
editmilestones.cgi

index c7d598bea6e3f712293ab4859c7d0bef56a70e1d..2db10ea3235a9f419cdf3d7dd1da8707133ce2d8 100755 (executable)
@@ -518,7 +518,7 @@ if ($action eq 'update') {
 
     if ($sortkey != $sortkeyold) {
         SendSQL("UPDATE milestones SET sortkey=$sortkey
-                 WHERE product=" . SqlQuote($product) . "
+                 WHERE product_id=" . $product_id . "
                    AND value=" . SqlQuote($milestoneold));
         unlink "data/versioncache";
         print "Updated sortkey.<BR>\n";