-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Labels
FilterThis ticket is related to filtering in the frontendThis ticket is related to filtering in the frontendbugA bug! A bug! Fast, squish it!A bug! A bug! Fast, squish it!frontendThis seems to be a bug in the frontendThis seems to be a bug in the frontend
Milestone
Description
Checklist before I submit this issue report
I confirm that:
- I have tested this with the latest version available
- I have read documentation @ http://metamodels.readthedocs.org/en/ or http://metamodels.readthedocs.org/de/
- I have checked the Contao community forums for references https://community.contao.org/
- I have checked existing issues for duplicates and found none @ https://github.com/MetaModels/core/issues?q=is%3Aissue
My environment is:
(Please fill in the actual values from your environment)
Key | Value | Comments |
---|---|---|
PHP version: | 7.3 | |
Contao version: | 4.7 | |
MetaModels version: | 2.1 | |
Installation via composer: | yes | |
Installed MetaModels packages: | filter_fromto | |
DCG version: | 2.1 |
Issue description
A comma in the filter URL will be handled as array delimiter.
Steps to reproduce
- Place a "fromto" filter on a decimal attribute in the frontend.
- If the user inputs a "comma", e.g.
20,00
instead of20.00
, the error will be thrown.
Live example:
https://www.ferienpass-luebeck.de/angebote/fee/20.00 OK
https://www.ferienpass-luebeck.de/angebote/fee/20,00 NOT OK
Stack trace: https://sentry.io/share/issue/ac77bf0c81e84605a381b4886d18c136/
where $arrFilterUrl
=
{
age: 8,
available: 1,
date: ,,
fee: 20,00
}
Metadata
Metadata
Assignees
Labels
FilterThis ticket is related to filtering in the frontendThis ticket is related to filtering in the frontendbugA bug! A bug! Fast, squish it!A bug! A bug! Fast, squish it!frontendThis seems to be a bug in the frontendThis seems to be a bug in the frontend