From d27f46ad1e912e35e39bc960a068fbf4847f0a9d Mon Sep 17 00:00:00 2001 From: "justdave%syndicomm.com" Date: Sat, 13 Oct 2001 01:36:17 +0000 Subject: [PATCH] Fix for bug 104516: No code changes in this patch, all this checkin does is remove all tabs from the bugzilla source and replace it with the appropriate number of spaces (in most cases 8) to line up with existing code. This is part of the effort to bring the existing codebase up to par with our style guidelines. Patch by Jake Steehagen r= justdave x2 git-svn-id: svn://10.0.0.236/trunk@105335 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/CGI.pl | 138 ++++++------- mozilla/webtools/bugzilla/bug_form.pl | 20 +- mozilla/webtools/bugzilla/buglist.cgi | 28 +-- mozilla/webtools/bugzilla/checksetup.pl | 60 +++--- mozilla/webtools/bugzilla/defparams.pl | 78 ++++---- mozilla/webtools/bugzilla/editcomponents.cgi | 26 +-- mozilla/webtools/bugzilla/editgroups.cgi | 30 +-- mozilla/webtools/bugzilla/editmilestones.cgi | 4 +- mozilla/webtools/bugzilla/editparams.cgi | 8 +- mozilla/webtools/bugzilla/editproducts.cgi | 8 +- mozilla/webtools/bugzilla/editusers.cgi | 198 +++++++++---------- mozilla/webtools/bugzilla/editversions.cgi | 4 +- mozilla/webtools/bugzilla/enter_bug.cgi | 16 +- mozilla/webtools/bugzilla/globals.pl | 26 +-- mozilla/webtools/bugzilla/long_list.cgi | 2 +- mozilla/webtools/bugzilla/new_comment.cgi | 10 +- mozilla/webtools/bugzilla/process_bug.cgi | 14 +- mozilla/webtools/bugzilla/processmail | 24 +-- mozilla/webtools/bugzilla/query.cgi | 80 ++++---- mozilla/webtools/bugzilla/queryhelp.cgi | 110 +++++------ mozilla/webtools/bugzilla/reports.cgi | 6 +- 21 files changed, 445 insertions(+), 445 deletions(-) diff --git a/mozilla/webtools/bugzilla/CGI.pl b/mozilla/webtools/bugzilla/CGI.pl index 6f9461b8f87..5ac08c556af 100644 --- a/mozilla/webtools/bugzilla/CGI.pl +++ b/mozilla/webtools/bugzilla/CGI.pl @@ -99,33 +99,33 @@ sub ParseUrlString { my %isnull; my $remaining = $buffer; while ($remaining ne "") { - my $item; - if ($remaining =~ /^([^&]*)&(.*)$/) { - $item = $1; - $remaining = $2; - } else { - $item = $remaining; - $remaining = ""; - } + my $item; + if ($remaining =~ /^([^&]*)&(.*)$/) { + $item = $1; + $remaining = $2; + } else { + $item = $remaining; + $remaining = ""; + } - my $name; - my $value; - if ($item =~ /^([^=]*)=(.*)$/) { - $name = $1; - $value = url_decode($2); - } else { - $name = $item; - $value = ""; - } - if ($value ne "") { - if (defined $f->{$name}) { - $f->{$name} .= $value; - my $ref = $m->{$name}; - push @$ref, $value; - } else { - $f->{$name} = $value; - $m->{$name} = [$value]; - } + my $name; + my $value; + if ($item =~ /^([^=]*)=(.*)$/) { + $name = $1; + $value = url_decode($2); + } else { + $name = $item; + $value = ""; + } + if ($value ne "") { + if (defined $f->{$name}) { + $f->{$name} .= $value; + my $ref = $m->{$name}; + push @$ref, $value; + } else { + $f->{$name} = $value; + $m->{$name} = [$value]; + } } else { $isnull{$name} = 1; } @@ -306,7 +306,7 @@ sub ValidateBugID { # Finish validation and return if the user is in a role that has access to the bug. if ($userid) { return - if ($reporter_accessible && $reporter == $userid) + if ($reporter_accessible && $reporter == $userid) || ($assignee_accessible && $assignee == $userid) || ($qacontact_accessible && $qacontact == $userid); } @@ -391,22 +391,22 @@ sub value_quote { sub navigation_header { if (defined $::COOKIE{"BUGLIST"} && $::COOKIE{"BUGLIST"} ne "" && defined $::FORM{'id'}) { - my @bugs = split(/:/, $::COOKIE{"BUGLIST"}); - my $cur = lsearch(\@bugs, $::FORM{"id"}); - print "Bug List: (@{[$cur + 1]} of @{[$#bugs + 1]})\n"; - print "First\n"; - print "Last\n"; - if ($cur > 0) { - print "Prev\n"; - } else { - print "Prev\n"; - } - if ($cur < $#bugs) { - $::next_bug = $bugs[$cur + 1]; - print "Next\n"; - } else { - print "Next\n"; - } + my @bugs = split(/:/, $::COOKIE{"BUGLIST"}); + my $cur = lsearch(\@bugs, $::FORM{"id"}); + print "Bug List: (@{[$cur + 1]} of @{[$#bugs + 1]})\n"; + print "First\n"; + print "Last\n"; + if ($cur > 0) { + print "Prev\n"; + } else { + print "Prev\n"; + } + if ($cur < $#bugs) { + $::next_bug = $bugs[$cur + 1]; + print "Next\n"; + } else { + print "Next\n"; + } print qq{  Show list\n}; } print "     Query page\n"; @@ -483,7 +483,7 @@ sub make_checkboxes { } } if (!$found && $default ne "") { - $popup .= "$default"; + $popup .= "$default"; } return $popup; } @@ -635,7 +635,7 @@ sub make_options { exit 0; } else { - $popup .= "