Closed Bug 433739 Opened 16 years ago Closed 16 years ago

'Browse Search Engines' link not working on p.a.m.o.

Categories

(addons.mozilla.org Graveyard :: Public Pages, defect)

defect
Not set
major

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: mail, Assigned: wenzel)

References

()

Details

(Keywords: regression)

Attachments

(1 file)

https://preview.addons.mozilla.org/en-US/firefox/browse/type:4 the link 'Browse Search Engines' (https://preview.addons.mozilla.org/en-US/firefox/browse/type:4/cat:all?sort=name) seems to return all addons - well okay, everything *except* any search engines
Chris, is this something you could take last-minute for 3.4.2?
Severity: normal → major
(It's a regression cf. a.m.o.)
Hey Wenzel, 

        // cat:all shows all valid add-on types, only the selected one otherwise
        if ($category != 'all') {
            $this->Tag->unbindFully();
            $this_tag = $this->Tag->findById($category);
            $this_addon_type = $this->Addontype->findById($addontype);
        } else {
            $this_tag = array();
            $this_addon_type = array();
            $addontype = $app_listedtypes[APP_ID];
        }

from Bug 425481 causes this problem. If I get rid of the if to make:
            $this->Tag->unbindFully();
            $this_tag = $this->Tag->findById($category);
            $this_addon_type = $this->Addontype->findById($addontype);
it reverts to the original behavior. This bug also causes problems for any
of the "I am looking for" links

You probably had a good reasons though for the if statement so I was wondering if you could look at it.
Assignee: nobody → fwenzel
Assignee: fwenzel → nobody
Oh, indeed, I broke this with the fix for bug 425481. Apologies, I am taking this and fixing it right away. Thanks for pointing me to it, Chris.

The reason for the "if" was that for the global "newest" and "updated" and "popular" lists, people would like to see all valid add-on types, not only extensions (in spite of the URL containing type:1).
Assignee: nobody → fwenzel
Component: Search Plugins → Public Pages
OS: Windows XP → All
Hardware: PC → All
Target Milestone: --- → 3.4.2
Status: NEW → ASSIGNED
Version: unspecified → 3.2
Chris, could you take a look at this? Now it should work as intended, showing all valid add-on types for the "type:1" list, and maintaining the original behavior everywhere else.
Attachment #321034 - Flags: review?(cpollett)
Comment on attachment 321034 [details] [diff] [review]
Fixing "browse all" lists

WFM so r+
Attachment #321034 - Flags: review?(cpollett) → review+
Thanks. Commmitted to r13199.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Keywords: push-needed
Resolution: --- → FIXED
Verified FIXED, and I made sure I also spot-checked other links on this page.
Status: RESOLVED → VERIFIED
Keywords: push-needed
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: