- Issue created by @adinancenci
I am using the date picker widget.
If I delete the value from both inputs and submit the form again,
the min date defaults to timestamp 0 ( 1970 ).
My expectation would be to not apply the facet at all.
It would be ok if I had results from 1970 forwards, but I actually have results from earlier than that.
Let's assume that my earliest result is from 1900.
&f[0]=date_facets:(min:,max:)
in the query string. )
Expected behaviour: Returns results from 1900 and forwards.
Actual behaviour: Returns results from 1970 and forwards.
DateRangeProcessor::preQuery()
defaults to a range of [0, +100 years].
I think we should add a conditional statement to return [] if both are empty.
Alternatively we could update the Drupal.behaviors.facetsDateRange
java-script behaviour to not include the facet in the URL in case both inputs are empty.
Active
1.0
Code