Closed Bug 1365345 Opened 7 years ago Closed 7 years ago

Modal Bug Entry Prototype

Categories

(bugzilla.mozilla.org :: Bug Creation/Editing, enhancement)

Production
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: seban, Assigned: seban, Mentored)

References

Details

Attachments

(1 file, 1 obsolete file)

45 bytes, text/x-github-pull-request
dylan
: review-
Details | Review
This should feature the null, status, and comment widgets/modules.
Attached file PR (obsolete) —
Attachment #8881143 - Flags: review?(dylan)
Comment on attachment 8881143 [details] [review]
PR

I had to back this out due to test failures. 
I neglected to run "prove t", but you should do that before submitting PRs for review.

The error found in particular can be dangerous (and I'm ashamed that I read over the code and didn't notice -- but this is why we have a test):

not ok 3397 - new_bug.cgi incorrectly passes a CGI argument to a hash --ERROR
# short_desc   => $cgi->param('short_desc'), on line 50
# product      => $cgi->param('product'), on line 51
# component    => $cgi->param('component'), on line 52
# comment      => $cgi->param('comment'), on line 59

When calling $cgi->param() it is important to force scalar context, by prefixing the call with scalar or assigning to a scalar ($) variable.
Attachment #8881143 - Flags: review?(dylan) → review-
Attached file PR
Attachment #8881143 - Attachment is obsolete: true
Attachment #8883642 - Flags: review?(dylan)
Comment on attachment 8883642 [details] [review]
PR

t/009bugwords.t .. 599/730
#   Failed test 'template/en/default/bug/new_bug.html.tmpl contains invalid bare words (e.g. 'bug') --WARNING'
#
#   at t/009bugwords.t line 68.
#
# Looks like you failed 1 test of 730.
Attachment #8883642 - Flags: review?(dylan) → review-
Status: ASSIGNED → RESOLVED
Closed: 7 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: