Hey there. Thanks for the work!

We found out by chance, that activating a calendar on a node, setting a date as "free", save it, deactivating the calender, save it, will find the node with the marked date in a exposed view filter as available. Just to make things clear, it will find the node even if the calendar is turned off.

There is even a user case for that behavior. Some people don't like to show their booking dates but still like to benefit from the search.

But I have to know if this is a feature, I can rely on. Or is it a bug that will be gone some day?

Thanks in advance.

Comments

ranonar created an issue.

fietserwin’s picture

From the readme:

Note that although there is a separate filter on the calendar option "enabled" in the views UI, if you define a view that accesses information from one of the availability_calendar_* tables, an extra join condition on enabled will be added automatically. So normally there is no need to add this filter, except perhaps in some administrative edge use cases.

So I have to dive into this why it does not add this filter and if not so, or not in all cases, if we can leave it like that (as you suggest) and make it an explicit filter only.