Opened 18 months ago
Closed 18 months ago
#4199 closed Defect (worksforme)
river page_handler - type/subtype filter
| Reported by: | ismayil.khayredinov | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Needs Review |
| Component: | Core | Version: | 1.8.1 |
| Severity: | minor | Keywords: | |
| Cc: | brett@… | Difficulty: |
Description
It looks likes the filter fails to build a correct sql query.
Current:
if ($type != 'all') {
$options['type'] = $type;
if ($subtype) {
$options['subtype'] = $subtype;
}
}
Should be:
if ($type != 'all') {
$options['type'] = $type;
if ($subtype) {
$options['type_subtype_pairs'] = array($type => $subtype);
}
}
Change History (1)
comment:1 Changed 18 months ago by cash
- Resolution set to worksforme
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.

The underlying query method has been fixed in the 1.8 branch and will be a part of the 1.8.2 release. It was doing an OR of the where clauses rather than an AND. If you try the 1.8 branch or the upcoming 1.8.2 release and it does not work, please reopen the ticket.