SEBLOD icon indicating copy to clipboard operation
SEBLOD copied to clipboard

jform_calendar now does not allow setting live value to 'now'

Open mvocu opened this issue 7 years ago • 4 comments

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.

mvocu avatar Oct 16 '17 13:10 mvocu

Work around: I've set live value to e. g. '2 hour -1 day' ('-1 day' alone isn't working).

olegischinski avatar Oct 23 '17 21:10 olegischinski

@mvocu and @olegischinski , date fields changed. Thanks to test again.

sebastienlapoux avatar Jul 04 '18 17:07 sebastienlapoux

Sorry, seems not to work.

olegischinski avatar Jul 04 '18 22:07 olegischinski

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".

svenlewerentz avatar Sep 06 '18 12:09 svenlewerentz