2 bugs are fixed with the patch:
- Using Views-7.x-3.x-dev no custom fields can be selected as filter.
- When selecting a custom fields as a filter _date_views_fields() does not pickup this field to process in the Views query.
Note: there is a check on "$field_name == 'entity_id'" in _date_views_fields(). This was changed in the latest Views version.
| Comment | File | Size | Author |
|---|---|---|---|
| date_views_.patch | 1.89 KB | p.brouwers |
Comments
Comment #1
FrequenceBanane commentedWhat about
if ($handler->definition['group'] == 'Fields')which raises an notice message "Undefined index : group" for me ? Is this another problem or do we have to remove this line since the is noif ($field_name == 'entity_id' && isset($content_fields[$table_name])) {but this in the code I downloaded ?Thanks a lot in advance, though
Comment #2
a.siebel commentedTesting patch against actual .dev .
The line
if (isset($content_fields[$table_name])) {in the patch is better working than the line
if ($handler->definition['group'] == 'Fields') {in actual .dev .
Comment #3
FrequenceBanane commentedSo I have replaced it, and it works *quite* fine : I can filter by value, but not by value2 (it simply does not appear in the WHERE clause of the MYSQL request)
Comment #4
rvilarThis is an important issue, I think.
I have the same problem
Comment #5
mattbk commentedsubscribe
Comment #6
karens commentedSee #1075890: Re-work Views filters, the filter handing is being totally rewritten.