#25230 closed defect (bug) (fixed)
In get_pages, don't require hierarchical => false for parent arg
Reported by: | wonderboymusic | Owned by: | wonderboymusic |
---|---|---|---|
Milestone: | 3.7 | Priority: | normal |
Severity: | normal | Version: | 1.5 |
Component: | Query | Keywords: | has-patch |
Focuses: | Cc: |
Description
parent
requires hierarchical => false
, which defaults to true
. Should set to false
automatically.
Attachments (2)
Change History (9)
#1
@
11 years ago
- Owner set to wonderboymusic
- Resolution set to fixed
- Status changed from new to closed
#2
@
11 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
Can this be simplified along the lines of the first change in [23599]? See 25230.diff.
#5
@
11 years ago
- Cc gaarai@… added
- Resolution fixed deleted
- Status changed from closed to reopened
Added a new patch for this issue as the original one introduced a bug that causes the hierarchical argument, which is enabled by default, to be disabled when -1 is supplied for the parent argument, it is -1 by default.
The problem seems to be that in simplifying the conditional, the "> 0" portion of the conditional was removed. Since -1 is truthy, the conditional incorrectly applied when -1 was supplied for parent.
My supplied patch, 25230.1.diff, fixes this issue.
#6
@
11 years ago
- Resolution set to fixed
- Status changed from reopened to closed
25230.1.diff looks good, please open a new ticket and upload the patch there. This one was closed on a completed milestone.
In 25245: