Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi buddy
I want to thank you first for this great sandbox.
I just one one issue when I tried to do a view with a expose filter by availability creating a condition with a empty NOT IN.
Comment | File | Size | Author |
---|---|---|---|
#1 | database_error_filter_a-2274681.patch | 1.02 KB | -enzo- |
Comments
Comment #1
-enzo- CreditAttribution: -enzo- commentedAttached you can find my proposal for the reported error
Comment #2
ziomizar CreditAttribution: ziomizar commentedHi -enzo-,
Tnx for the patch, this section of the rooms_node needs some review, i think that is better define an hook_views_data for mapping {rooms_availability_index} table, then working only on views.
The original ideia of this query was:
- select all nodes booked, or unavailable in a dates range
- exclude this node from the query
Your solution seems to doing only:
- exclude all nodes in selected range
But all nodes have a value in selected range, with a status 0,1,32,ecc..
So all nodes in this range are excluded from search result..
Can you include more information on the error, or can you explain me how your code improve the search?
Comment #3
ziomizar CreditAttribution: ziomizar commented