Closed Bug 343112 Opened 19 years ago Closed 19 years ago

@Bugzilla::Config::parampanels is only defined if something calls _load_params

Categories

(Bugzilla :: Administration, task)

2.23
task
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.0

People

(Reporter: mkanat, Assigned: mkanat)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 2 obsolete files)

In bug 342869 LpSolit noticed that @parampanels isn't defined if nothing calls _load_params. So, instead, we should just have a subroutine in Bugzilla::Config that returns @parampanels. (Which is better anyway, because then we get rid of that package-global variable.)
Attached patch v1 (obsolete) — Splinter Review
Okay, this is a nice clean fix for the problem. We replace @parampanels with a subroutine called param_panels, which works nicely. This will slightly bitrot my patch in bug 342869, but that's okay--the bitrot will be easy to fix.
Attachment #227542 - Flags: review?(LpSolit)
Status: NEW → ASSIGNED
Comment on attachment 227542 [details] [diff] [review] v1 Looks good except your patch is bitrotten due to the checkin of bug 342121. So I couldn't test it.
Attachment #227542 - Flags: review?(LpSolit) → review-
Blocks: 303662
Attached patch v1.1 (obsolete) — Splinter Review
Ah, okay! I fixed the bitrot. :-)
Attachment #227542 - Attachment is obsolete: true
Attachment #227714 - Flags: review?(LpSolit)
Attached patch v1.2Splinter Review
I noticed that I'd added Bugzilla::Constants in twice to Bugzilla::Config.
Attachment #227714 - Attachment is obsolete: true
Attachment #227822 - Flags: review?(LpSolit)
Attachment #227714 - Flags: review?(LpSolit)
Comment on attachment 227822 [details] [diff] [review] v1.2 works fine. r=LpSolit
Attachment #227822 - Flags: review?(LpSolit) → review+
Flags: approval?
Flags: approval? → approval+
Checking in editparams.cgi; /cvsroot/mozilla/webtools/bugzilla/editparams.cgi,v <-- editparams.cgi new revision: 1.37; previous revision: 1.36 done Checking in Bugzilla/Config.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Config.pm,v <-- Config.pm new revision: 1.62; previous revision: 1.61 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: