Closed Bug 433449 Opened 17 years ago Closed 17 years ago

Last-updated date reads "Updated December 31, 1969" on /browse/ pages

Categories

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

defect
Not set
major

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: stephend, Assigned: wenzel)

References

()

Details

Attachments

(1 file)

Steps to Reproduce: 1. Load https://preview.addons.mozilla.org/en-US/firefox/browse/type:1/cat:5 2. Look at the date after the add-on's description 3. Now click through (we'll use FlashGot: https://preview.addons.mozilla.org/en-US/firefox/addon/220) to its details page. Actual Results: The /browse/ page (step 2) reads, "Updated December 31, 1969" Expected Results: As when you click through to its details page (https://preview.addons.mozilla.org/en-US/firefox/addon/220), reads, "Updated April 4, 2008" (or something similar)
No longer blocks: 425527
(This is from bug 425527, btw...)
Target Milestone: --- → 3.4.2
The problem is that the fix from bug 425527 does not use the correct date field: it uses $version[0]['created'], no matter if that version even exists or what status it has. In the Addon model, getAddonsByCategory() generates a "datestatuschanged" field that should be used where available.
I think the problem was that the category landing page is it's own template and that variable wasn't getting passed in. r13094 fixes this for the category landing page, theme landing page and the search engine page. I think this bug is fixed, but holding off marking it that way till wenzel has a change to comment.
Assignee: nobody → clouserw
Ah yeah, I think that fixed it; however it does not address my points in comment 2, which arguably aren't this bug. I may file another bug or fix them here, hmmm.
This patch will fix the "datestatuschanged" issue. I will fix the "what status does the latest version even have?" problem as part of bug 404664 (this may not sound obvious, but I am quite sure it's the same problem).
Attachment #320771 - Flags: review?(clouserw)
Shouldn't we check for that array key in each of the templates then?
Not sure if any other templates use that array key: it is generated by the Addon model's getAddonsByCategory() only when queried for a list of recently updated add-ons.
Comment on attachment 320771 [details] [diff] [review] Using "datestatuschanged" in listitems wfm - ship it.
Attachment #320771 - Flags: review?(clouserw) → review+
(it works to fix this specific bug)
Checked into r13121. Thanks.
Assignee: clouserw → fwenzel
Status: NEW → RESOLVED
Closed: 17 years ago
Keywords: push-needed
Resolution: --- → FIXED
Verified FIXED, w00t!
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: