Closed Bug 301463 Opened 19 years ago Closed 19 years ago

Move CheckFormField and CheckFormFieldDefined into Field.pm

Categories

(Bugzilla :: Bugzilla-General, enhancement)

2.21
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.22

People

(Reporter: LpSolit, Assigned: LpSolit)

References

Details

Attachments

(1 file, 2 obsolete files)

These routines are used by post_bug.cgi and process_bug.cgi only.

Fields related stuff must go into the new Field.pm module.
Status: NEW → ASSIGNED
Target Milestone: --- → Bugzilla 2.22
Attached patch patch, v1 (obsolete) — Splinter Review
Do we want to rename these routines to check_form_field and
check_form_field_defined?
Attachment #189948 - Flags: review?(mkanat)
Comment on attachment 189948 [details] [diff] [review]
patch, v1

Looks generally good on inspection, and the POD docs seem to have basically the
right structure.

There does need to be a =back at the end of each =head1 section.

Also, the function docs, since this is a new module, should be in our standard
Description/Params/Returns format. Product.pm is a pretty good example of this,
as I recall.

And yeah, we should rename the functions.

Eventually they will be methods of a Field object, but for now we'll just leave
them as they are.

Oh also, DESCRIPTION should probably be something more like, "Thi package
provides functions for dealing with CGI form fields."
Attachment #189948 - Flags: review?(mkanat) → review-
Attached patch patch, v2 (obsolete) — Splinter Review
Attachment #189948 - Attachment is obsolete: true
Attachment #189956 - Flags: review?(mkanat)
Attached patch patch, v2.1Splinter Review
Now that we have POD docs, comments are no longer required. :)
Attachment #189956 - Attachment is obsolete: true
Attachment #189957 - Flags: review?(mkanat)
Attachment #189956 - Flags: review?(mkanat)
Comment on attachment 189957 [details] [diff] [review]
patch, v2.1

r=mkanat on inspection.
Attachment #189957 - Flags: review?(mkanat) → review+
Comment on attachment 189957 [details] [diff] [review]
patch, v2.1

OK, still needs testing.
Attachment #189957 - Flags: review+ → review?(mkanat)
FYI, I did some additional testing using both post_bug.cgi and process_bug.cgi.
It works fine! :)
Comment on attachment 189957 [details] [diff] [review]
patch, v2.1

OK. I trust LpSolit's testing. :-)
Attachment #189957 - Flags: review?(mkanat) → review+
Flags: approval?
(In reply to comment #4)
> Created an attachment (id=189957) [edit]
> patch, v2.1
> 
> Now that we have POD docs, comments are no longer required. :)

On the contrary, POD docs are just another form of comments ;)  (just a little
more structured).
Flags: approval? → approval+
Checking in CGI.pl;
/cvsroot/mozilla/webtools/bugzilla/CGI.pl,v  <--  CGI.pl
new revision: 1.250; previous revision: 1.249
done
Checking in post_bug.cgi;
/cvsroot/mozilla/webtools/bugzilla/post_bug.cgi,v  <--  post_bug.cgi
new revision: 1.119; previous revision: 1.118
done
Checking in process_bug.cgi;
/cvsroot/mozilla/webtools/bugzilla/process_bug.cgi,v  <--  process_bug.cgi
new revision: 1.266; previous revision: 1.265
done
RCS file: /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Field.pm,v
done
Checking in Bugzilla/Field.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Field.pm,v  <--  Field.pm
initial revision: 1.1
done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: