Merge lp://qastaging/~gmb/launchpad/bug-495029 into lp://qastaging/launchpad
Proposed by
Graham Binns
Status: | Merged |
---|---|
Approved by: | Graham Binns |
Approved revision: | not available |
Merged at revision: | not available |
Proposed branch: | lp://qastaging/~gmb/launchpad/bug-495029 |
Merge into: | lp://qastaging/launchpad |
Diff against target: |
38 lines (+6/-8) 1 file modified
lib/canonical/launchpad/javascript/bugs/filebug-dupefinder.js (+6/-8) |
To merge this branch: | bzr merge lp://qastaging/~gmb/launchpad/bug-495029 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Deryck Hodge (community) | code | Approve | |
Review via email: mp+15944@code.qastaging.launchpad.net |
Commit message
The inline dupefinder will now show a bug reporting form if no similar bugs are found.
To post a comment you must log in.
This branch fixes bug 495029 by converting the Y.Lang.isValue() checks on the results of Y.all() to use result.size().
The problem is due in part the upgrade in YUI. The dupefinder was written and mostly QA'd against a branch which used the pre-release YUI3, which expected Y.all() to return null when no matching nodes were found. The released version of YUI3's Y.all() returns an empty NodeList when no nodes are found. Since the change for Y.Lang.isValue() on such results would now always return true, the JS assumed that there were duplicates found when there weren't and so would never show the filebug form in those cases.