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.
The views filter that was available as a result of "Add Views Filter handler for Open/Closed (today/now/soon)" issue, does not work when the filter is under a relationship.
it only works with direct entity, since there is a entity_load on office_hours_handler_filter_open that fetchs the entity_id from the main entity and not the entity above relationship.
I've hardcoded used my relationship field, but that will break on next update.
I don't have the views api knowledge to do it, but it would be great if the entity_load could use the ID from the correct node.
Great module! Thanks.
Comments
Comment #2
Patriciok CreditAttribution: Patriciok commentedI´ve hardcoded this aswell.
I changed line 100 in office_hours_handler_filter_open.inc to:
$entity_type = 'node';
$entity_id = $object->field_referencingfield_node_nid;
Comment #3
johnvComment #4
johnvComment #5
johnvSetting to 'Needs Review', regarding #2 as a patch.
Comment #6
johnvClosing all D7 requests, since I cannot maintain this anymore.