jemproject / JEM-Project

JEM - an Event Manager for Joomla
https://www.joomlaeventmanager.net
GNU General Public License v3.0
27 stars 39 forks source link

eternal Error page after inserting invalid month search in simplelist #1829

Closed Heklaterriol closed 1 month ago

Heklaterriol commented 1 month ago

In JEM simplelist if I enter a wrong month search format (not YYYY-MM), then I get an error and I cannot leave the error page anymore to reset the search field. Reloading the page doesn't help, only deleting the cookies in the browser allows to go back to the JEM Simplelist.

jojo12 commented 1 month ago

I reproduced this error

Heklaterriol commented 1 month ago

I added a field validation as a first help action

mckillo commented 1 month ago

Work, this is better. Thanks.

If you want, you can be more explicit in the pattern: ^(19[0-9]{2}|20[0-9]{2})-(0[1-9]|1[0-2])$ From 1900-01 to 2199-12

This issue could be closed, one less.

Heklaterriol commented 1 month ago

In principle, yes. But I would keep it this way and leave the responsibility of the date range to the visitor.