Problem/Motivation
If you use decimal values as arguments in Views and allow multiple values, the query will always fail because HandlerBase::breakString() returns an empty value.
The regular expressions used to check for "," or "+" did not include dots as allowed values so a decimal value never gets caught. Additionally NumericArgument always enforces a transformation of the argument to integer.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | decimal_views_arguments-2678620-2.patch | 3.7 KB | stborchert |
Comments
Comment #2
stborchert* modified the regular expressions in
breakString()to allow dots* do not enforce integer values in ArgumentNumeric
* add basic tests
Comment #3
dawehnerLooks great for me. We have extended test coverage and the regexes are just minor changed.
Comment #7
catchCommitted/pushed to 8.2.x and cherry-picked to 8.1.x and 8.0.x. Thanks!