Closed Bug 257152 Opened 20 years ago Closed 20 years ago

With JavaScript switched off, flag type deletion crashes

Categories

(Bugzilla :: Administration, task)

task
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.18

People

(Reporter: Wurblzap, Assigned: Wurblzap)

Details

Attachments

(1 file, 2 obsolete files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.7) Gecko/20040707 Firefox/0.9.2 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.7) Gecko/20040707 Firefox/0.9.2 Undefined subroutine &main::deleteType called at editflagtypes.cgi line 360. Reproducible: Always Steps to Reproduce: 1. Switch JavaScript off 2. Go to editflagtypes.cgi 3. Click on some "delete" link
Attached patch Patch (obsolete) — Splinter Review
Attachment #157162 - Flags: review?
Flags: blocking2.18?
Yeah.
Assignee: justdave → marcschum
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment on attachment 157162 [details] [diff] [review] Patch I'd rather we used deleteType consistently -- I suspect that was what Myk intended originally -- using reserved words is evil.
Attachment #157162 - Flags: review? → review-
Attached patch Using deleteType (obsolete) — Splinter Review
> I'd rather we used deleteType consistently -- I suspect that was what Myk > intended originally -- using reserved words is evil. Do we want to harmonize editflagtypes by putting a trailing "...Type" to each of the functions? New bug?
Attachment #157162 - Attachment is obsolete: true
Attachment #157314 - Flags: review?
Comment on attachment 157314 [details] [diff] [review] Using deleteType Kiko should get this since he looked at the previous patch as well.
Attachment #157314 - Flags: review? → review?(kiko)
Comment on attachment 157314 [details] [diff] [review] Using deleteType >Index: editflagtypes.cgi >-elsif ($action eq 'delete') { &delete(); } >+elsif ($action eq 'deleteType') { deleteType(); Keep the action as "delete" but have the function called deleteType -- yes, it's a bit inconsistent, but we're only working around a perl limitation here -- no need to expose it to the user. r=kiko on an updated patch, just seek approval.
Attachment #157314 - Flags: review?(kiko) → review+
That way there are no template changes either.
Status: NEW → ASSIGNED
Attached patch Shortened patchSplinter Review
Attachment #157314 - Attachment is obsolete: true
(In reply to comment #6) > r=kiko on an updated patch, just seek approval.
Flags: approval?
Flags: approval2.18?
Flags: blocking2.18?
Flags: approval?
Flags: approval2.18?
Flags: approval2.18+
Flags: approval+
Checking in editflagtypes.cgi; /cvsroot/mozilla/webtools/bugzilla/editflagtypes.cgi,v <-- editflagtypes.cgi new revision: 1.8; previous revision: 1.7 done Checking in editflagtypes.cgi; /cvsroot/mozilla/webtools/bugzilla/editflagtypes.cgi,v <-- editflagtypes.cgi new revision: 1.7.2.1; previous revision: 1.7 done
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Target Milestone: --- → Bugzilla 2.18
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

Created:
Updated:
Size: