Closed
Bug 457602
Opened 17 years ago
Closed 17 years ago
function out_select() in search element breaks test framework
Categories
(addons.mozilla.org Graveyard :: Administration, defect)
addons.mozilla.org Graveyard
Administration
Tracking
(Not tracked)
RESOLVED
FIXED
4.0.4
People
(Reporter: wenzel, Assigned: wenzel)
References
Details
Attachments
(1 file)
|
4.50 KB,
patch
|
clouserw
:
review+
|
Details | Diff | Splinter Review |
The search element contains a global function out_select().
That's not only exceptionally ugly, it also breaks the test framework by preventing it from loading the same page more than once on the same test run:
Fatal error: Cannot redeclare out_select() (previously declared in /Users/fred/dev/addons/site/app/views/elements/search.thtml:178) in /Users/fred/dev/addons/site/app/views/elements/search.thtml on line 185
In addition, the CakePHP helper function $html->selectTag() is likely to already work as desired, so there's no need to reinvent the wheel.
Updated•17 years ago
|
Target Milestone: --- → 4.0.4
| Assignee | ||
Updated•17 years ago
|
Assignee: nobody → fwenzel
Severity: normal → major
| Assignee | ||
Comment 1•17 years ago
|
||
Wil, would you be so nice to review this?
Note: I had to wrap selectTag in a simpleSelectTag helper function because Cake's SelectTag insists on Yada/Yada notation for field names, which is undesired here.
Attachment #349652 -
Flags: review?(clouserw)
| Assignee | ||
Updated•17 years ago
|
Status: NEW → ASSIGNED
Updated•17 years ago
|
Attachment #349652 -
Flags: review?(clouserw) → review+
| Assignee | ||
Updated•17 years ago
|
Keywords: push-needed
Updated•9 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•