Commit 55b5a6b7 authored by cyeh%bluemartini.com's avatar cyeh%bluemartini.com

fix for 44617: edit*.cgi: Should show which product you're working on

patches by mtakacs@pacbell.net (Tak)
parent 8562672b
...@@ -263,7 +263,7 @@ unless ($product) { ...@@ -263,7 +263,7 @@ unless ($product) {
# #
unless ($action) { unless ($action) {
PutHeader("Select component"); PutHeader("Select component of $product");
CheckProduct($product); CheckProduct($product);
if ($dobugcounts) { if ($dobugcounts) {
...@@ -330,7 +330,7 @@ $dobugcounts = 1; # Stupid hack to force further PutTrailer() ...@@ -330,7 +330,7 @@ $dobugcounts = 1; # Stupid hack to force further PutTrailer()
# #
if ($action eq 'add') { if ($action eq 'add') {
PutHeader("Add component"); PutHeader("Add component of $product");
CheckProduct($product); CheckProduct($product);
#print "This page lets you add a new product to bugzilla.\n"; #print "This page lets you add a new product to bugzilla.\n";
...@@ -358,7 +358,7 @@ if ($action eq 'add') { ...@@ -358,7 +358,7 @@ if ($action eq 'add') {
# #
if ($action eq 'new') { if ($action eq 'new') {
PutHeader("Adding new component"); PutHeader("Adding new component of $product");
CheckProduct($product); CheckProduct($product);
# Cleanups and valididy checks # Cleanups and valididy checks
...@@ -440,7 +440,7 @@ if ($action eq 'new') { ...@@ -440,7 +440,7 @@ if ($action eq 'new') {
# #
if ($action eq 'del') { if ($action eq 'del') {
PutHeader("Delete component"); PutHeader("Delete component of $product");
CheckComponent($product, $component); CheckComponent($product, $component);
# display some data about the component # display some data about the component
...@@ -556,7 +556,7 @@ one."; ...@@ -556,7 +556,7 @@ one.";
# #
if ($action eq 'delete') { if ($action eq 'delete') {
PutHeader("Deleting component"); PutHeader("Deleting component of $product");
CheckComponent($product,$component); CheckComponent($product,$component);
# lock the tables before we start to change everything: # lock the tables before we start to change everything:
...@@ -620,7 +620,7 @@ if ($action eq 'delete') { ...@@ -620,7 +620,7 @@ if ($action eq 'delete') {
# #
if ($action eq 'edit') { if ($action eq 'edit') {
PutHeader("Edit component"); PutHeader("Edit component of $product");
CheckComponent($product,$component); CheckComponent($product,$component);
# get data of component # get data of component
...@@ -682,7 +682,7 @@ if ($action eq 'edit') { ...@@ -682,7 +682,7 @@ if ($action eq 'edit') {
# #
if ($action eq 'update') { if ($action eq 'update') {
PutHeader("Update component"); PutHeader("Update component of $product");
my $componentold = trim($::FORM{componentold} || ''); my $componentold = trim($::FORM{componentold} || '');
my $description = trim($::FORM{description} || ''); my $description = trim($::FORM{description} || '');
......
...@@ -212,7 +212,7 @@ unless ($product) { ...@@ -212,7 +212,7 @@ unless ($product) {
# #
unless ($action) { unless ($action) {
PutHeader("Select milestone"); PutHeader("Select milestone for $product");
CheckProduct($product); CheckProduct($product);
SendSQL("SELECT value,sortkey SendSQL("SELECT value,sortkey
...@@ -255,7 +255,7 @@ unless ($action) { ...@@ -255,7 +255,7 @@ unless ($action) {
# #
if ($action eq 'add') { if ($action eq 'add') {
PutHeader("Add milestone"); PutHeader("Add milestone for $product");
CheckProduct($product); CheckProduct($product);
#print "This page lets you add a new milestone to a $::bugzilla_name tracked product.\n"; #print "This page lets you add a new milestone to a $::bugzilla_name tracked product.\n";
...@@ -283,7 +283,7 @@ if ($action eq 'add') { ...@@ -283,7 +283,7 @@ if ($action eq 'add') {
# #
if ($action eq 'new') { if ($action eq 'new') {
PutHeader("Adding new milestone"); PutHeader("Adding new milestone for $product");
CheckProduct($product); CheckProduct($product);
# Cleanups and valididy checks # Cleanups and valididy checks
...@@ -326,7 +326,7 @@ if ($action eq 'new') { ...@@ -326,7 +326,7 @@ if ($action eq 'new') {
# #
if ($action eq 'del') { if ($action eq 'del') {
PutHeader("Delete milestone"); PutHeader("Delete milestone of $product");
CheckMilestone($product, $milestone); CheckMilestone($product, $milestone);
SendSQL("SELECT count(bug_id),product,target_milestone SendSQL("SELECT count(bug_id),product,target_milestone
...@@ -401,7 +401,7 @@ one."; ...@@ -401,7 +401,7 @@ one.";
# #
if ($action eq 'delete') { if ($action eq 'delete') {
PutHeader("Deleting milestone"); PutHeader("Deleting milestone of $product");
CheckMilestone($product,$milestone); CheckMilestone($product,$milestone);
# lock the tables before we start to change everything: # lock the tables before we start to change everything:
...@@ -466,7 +466,7 @@ if ($action eq 'delete') { ...@@ -466,7 +466,7 @@ if ($action eq 'delete') {
# #
if ($action eq 'edit') { if ($action eq 'edit') {
PutHeader("Edit milestone"); PutHeader("Edit milestone of $product");
CheckMilestone($product,$milestone); CheckMilestone($product,$milestone);
SendSQL("SELECT sortkey FROM milestones WHERE product=" . SendSQL("SELECT sortkey FROM milestones WHERE product=" .
...@@ -502,7 +502,7 @@ if ($action eq 'edit') { ...@@ -502,7 +502,7 @@ if ($action eq 'edit') {
# #
if ($action eq 'update') { if ($action eq 'update') {
PutHeader("Update milestone"); PutHeader("Update milestone of $product");
my $milestoneold = trim($::FORM{milestoneold} || ''); my $milestoneold = trim($::FORM{milestoneold} || '');
my $sortkeyold = trim($::FORM{sortkeyold} || '0'); my $sortkeyold = trim($::FORM{sortkeyold} || '0');
......
...@@ -222,7 +222,7 @@ unless ($product) { ...@@ -222,7 +222,7 @@ unless ($product) {
# #
unless ($action) { unless ($action) {
PutHeader("Select version"); PutHeader("Select version of $product");
CheckProduct($product); CheckProduct($product);
=for me =for me
...@@ -277,7 +277,7 @@ unless ($action) { ...@@ -277,7 +277,7 @@ unless ($action) {
# #
if ($action eq 'add') { if ($action eq 'add') {
PutHeader("Add version"); PutHeader("Add version of $product");
CheckProduct($product); CheckProduct($product);
#print "This page lets you add a new version to a bugzilla-tracked product.\n"; #print "This page lets you add a new version to a bugzilla-tracked product.\n";
...@@ -348,7 +348,7 @@ if ($action eq 'new') { ...@@ -348,7 +348,7 @@ if ($action eq 'new') {
# #
if ($action eq 'del') { if ($action eq 'del') {
PutHeader("Delete version"); PutHeader("Delete version of $product");
CheckVersion($product, $version); CheckVersion($product, $version);
SendSQL("SELECT count(bug_id),product,version SendSQL("SELECT count(bug_id),product,version
...@@ -412,7 +412,7 @@ one."; ...@@ -412,7 +412,7 @@ one.";
# #
if ($action eq 'delete') { if ($action eq 'delete') {
PutHeader("Deleting version"); PutHeader("Deleting version of $product");
CheckVersion($product,$version); CheckVersion($product,$version);
# lock the tables before we start to change everything: # lock the tables before we start to change everything:
...@@ -477,7 +477,7 @@ if ($action eq 'delete') { ...@@ -477,7 +477,7 @@ if ($action eq 'delete') {
# #
if ($action eq 'edit') { if ($action eq 'edit') {
PutHeader("Edit version"); PutHeader("Edit version of $product");
CheckVersion($product,$version); CheckVersion($product,$version);
print "<FORM METHOD=POST ACTION=editversions.cgi>\n"; print "<FORM METHOD=POST ACTION=editversions.cgi>\n";
...@@ -507,7 +507,7 @@ if ($action eq 'edit') { ...@@ -507,7 +507,7 @@ if ($action eq 'edit') {
# #
if ($action eq 'update') { if ($action eq 'update') {
PutHeader("Update version"); PutHeader("Update version of $product");
my $versionold = trim($::FORM{versionold} || ''); my $versionold = trim($::FORM{versionold} || '');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment