Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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!