Closed Bug 276423 Opened 20 years ago Closed 20 years ago

VersionCheck does not exclude items

Categories

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

defect
Not set
critical

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Bugzilla-alanjstrBugs, Assigned: Bugzilla-alanjstrBugs)

References

()

Details

Attachments

(1 file, 2 obsolete files)

Items that are disabled or not approved should not appear.
Attached patch Make sure it is approved (obsolete) — Splinter Review
Since jensb is around, jensb gets to do the review.
Attachment #169873 - Flags: first-review?(jens.b)
Comment on attachment 169873 [details] [diff] [review] Make sure it is approved > $where = " WHERE main.guid = '" . $reqItemGuid . "' > AND applications.guid = '" . $reqTargetAppGuid . "' >- AND (version.OSID = 1 OR version.OSID = " . $osid . ")"; >+ AND (version.OSID = 1 OR version.OSID = " . $osid . >+ AND version.approved = 'YES')"; PHP Syntax error, the string is terminated before $osid. Besides, you changed the logic, the braces should only surround the OSID checks. How about: >+ AND (version.OSID = 1 OR version.OSID = " . $osid . ") >+ AND version.approved = 'YES'";
Attachment #169873 - Flags: first-review?(jens.b) → first-review-
Attachment #169873 - Attachment is obsolete: true
Attachment #169875 - Flags: first-review?(jens.b)
Status: NEW → ASSIGNED
Severity: normal → critical
Comment on attachment 169875 [details] [diff] [review] move that parens where it belongs sorry, there is one superfluous brace left after 'YES'. + with this change.
Attachment #169875 - Flags: first-review?(jens.b) → first-review-
Attachment #169875 - Attachment is obsolete: true
Attachment #169877 - Flags: first-review?(jens.b)
Attachment #169877 - Flags: first-review?(jens.b) → first-review+
Attachment #169877 - Flags: first-review+ → first-review?(cbeard)
Comment on attachment 169877 [details] [diff] [review] one ... more ... time Works for me. :-)
Attachment #169877 - Flags: first-review?(cbeard) → first-review+
Checked in.. cbeard: this needs to land on the live site.
*** Bug 276526 has been marked as a duplicate of this bug. ***
*** Bug 276731 has been marked as a duplicate of this bug. ***
*** Bug 276859 has been marked as a duplicate of this bug. ***
Target Milestone: 1.0 → 1.1
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
AMO BUGSPAM FOR COMPONENT MOVE AND DELETE (FILTER ME)
Component: Listings → Web Site
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

Creator:
Created:
Updated:
Size: