Closed Bug 236019 Opened 21 years ago Closed 21 years ago

request.cgi should use $cgi-> instead of %::FORM

Categories

(Bugzilla :: Bugzilla-General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.18

People

(Reporter: goobix, Assigned: goobix)

References

Details

Attachments

(1 file, 3 obsolete files)

request.cgi should use $cgi-> instead of $::FORM.
I've got a diff in my tree. Need to check how accurate it is and prepate it for r?.
Blocks: 225818
No longer blocks: 234876
Status: NEW → ASSIGNED
Attached patch Version 1 (obsolete) — Splinter Review
Target Milestone: --- → Bugzilla 2.18
Attached patch Version 2 (obsolete) — Splinter Review
Attachment #142591 - Attachment is obsolete: true
Attachment #142854 - Flags: review?(kiko)
Comment on attachment 142854 [details] [diff] [review] Version 2 >Index: request.cgi > >+# initialize the $cgi variable >+my $cgi = Bugzilla->cgi; No need for the comment :) >+ if (defined($cgi->param('requester')) && $cgi->param('requester') ne "") { Don't need the parenthesis to defined here.. this happens in other parts of the patch which would be nice to see removed. >@@ -185,14 +190,14 @@ > } > if (!$has_attachment_type) { push(@excluded_columns, 'attachment') } > >- push(@criteria, "flagtypes.name = " . SqlQuote($::FORM{'type'})); >- push(@excluded_columns, 'type') unless $::FORM{'do_union'}; >+ push(@criteria, "flagtypes.name = " . SqlQuote($form_type)); >+ push(@excluded_columns, 'type') unless $form_type; Errr, unless do_union :-P >+ my $form_group = $cgi->param('group'); [...] > $vars->{'excluded_columns'} = \@excluded_columns; >- $vars->{'group_field'} = $::FORM{'group'}; >+ $vars->{'group_field'} = $cgi->param('group'); Hmm, don't you want to use $form_group here? Looks okay, but a hard read.
Attachment #142854 - Flags: review?(kiko) → review-
Attached patch Version 3 (obsolete) — Splinter Review
Thanks for your comments! If you r+ it please a? it for me.
Attachment #142854 - Attachment is obsolete: true
Attachment #142912 - Flags: review?(kiko)
Comment on attachment 142912 [details] [diff] [review] Version 3 Sorry I didn't catch this before: it's probably best to define $cgi in queue() local's scope, and supply status and group as arguments to validate*.
Attachment #142912 - Flags: review?(kiko) → review-
Attached patch Version 4Splinter Review
Yeah, good catch!
Attachment #142912 - Attachment is obsolete: true
Attachment #143006 - Flags: review?(kiko)
Attachment #143006 - Flags: review?(kiko) → review+
Flags: approval?
Flags: approval? → approval+
Checking in request.cgi; /cvsroot/mozilla/webtools/bugzilla/request.cgi,v <-- request.cgi new revision: 1.11; previous revision: 1.10 done Checking in template/en/default/request/queue.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/request/queue.html.tmpl,v <-- queue.html.tmpl new revision: 1.10; previous revision: 1.9 done
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Summary: request.cgi should use $cgi-> instead of $::FORM → request.cgi should use $cgi-> instead of %::FORM
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: