From 6253da57b929638cc07ad63afaa1e5c6d5948438 Mon Sep 17 00:00:00 2001 From: "myk%mozilla.org" Date: Thu, 27 Sep 2001 23:49:07 +0000 Subject: [PATCH] Fix for bug #53612: The milestone URL appears correctly when deleting a product or a component. Patch by Jake . r=gerv@mozilla.org,myk@mozilla.org --- webtools/bugzilla/editcomponents.cgi | 6 +++--- webtools/bugzilla/editproducts.cgi | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/webtools/bugzilla/editcomponents.cgi b/webtools/bugzilla/editcomponents.cgi index 30f9dd4ead5..f48612d75ea 100755 --- a/webtools/bugzilla/editcomponents.cgi +++ b/webtools/bugzilla/editcomponents.cgi @@ -487,9 +487,9 @@ if ($action eq 'del') { my $initialowner = $initialownerid ? DBID_to_name ($initialownerid) : "missing"; my $initialqacontact = $initialqacontactid ? DBID_to_name ($initialqacontactid) : "missing"; - + my $milestonelink = $milestoneurl ? "$milestoneurl" + : "missing"; $pdesc ||= "missing"; - $milestoneurl ||= "missing"; $disallownew = $disallownew ? 'closed' : 'open'; $cdesc ||= "missing"; @@ -530,7 +530,7 @@ if ($action eq 'del') { if (Param('usetargetmilestone')) { print "\n"; print " Milestone URL:\n"; - print " $milestoneurl\n"; + print " $milestonelink\n"; } print "\n"; diff --git a/webtools/bugzilla/editproducts.cgi b/webtools/bugzilla/editproducts.cgi index 73fdbf48747..f7d479f1d0f 100755 --- a/webtools/bugzilla/editproducts.cgi +++ b/webtools/bugzilla/editproducts.cgi @@ -418,6 +418,8 @@ if ($action eq 'del') { FROM products WHERE product=" . SqlQuote($product)); my ($description, $milestoneurl, $disallownew) = FetchSQLData(); + my $milestonelink = $milestoneurl ? "$milestoneurl" + : "missing"; $description ||= "description missing"; $disallownew = $disallownew ? 'closed' : 'open'; @@ -437,7 +439,7 @@ if ($action eq 'del') { if (Param('usetargetmilestone')) { print "\n"; print " Milestone URL:\n"; - print " $milestoneurl\n"; + print " $milestonelink\n"; } # Added -JMR, 2/16/00