SEBLOD
SEBLOD copied to clipboard
jform_calendar now does not allow setting live value to 'now'
After commit eab268f8b83f1e0c79d8d0970969989e011b2506 it is not possible to enter text 'now' into live value of jform_calendar field. It breaks my site (the condition "dates starting now" is ignored and searches return all rows), other sites may be broken as well.
The culprit is replacing the original $value test with if( (int)$value > 0 ) which the 'now' value does not pass as it did before.
Work around: I've set live value to e. g. '2 hour -1 day' ('-1 day' alone isn't working).
@mvocu and @olegischinski , date fields changed. Thanks to test again.
Sorry, seems not to work.
I have the same problem on one of my sites. Can't use "now" or "today" as a live value of jform_calendar field. The workaround by @olegischinski worked for me, I replaced "now" by "1 day -1 day".