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.
Some of the code was migrated to mongodb and as a result we got only one value for BETWEEN filter instead of an array with actual ranges.
Should be changed to:
--- a/handlers/efq_views_handler_filter_field_numeric.inc
+++ b/handlers/efq_views_handler_filter_field_numeric.inc
@@ -27,6 +27,6 @@ class efq_views_handler_filter_field_numeric extends efq_views_handler_filter_numeric.inc
}
function op_between($column) {
- $this->query->query->fieldCondition($this->definition['field_name'], $column, $this->value['value'], "BETWEEN", efq_views_extract_delta($this));
+ $this->query->query->fieldCondition($this->definition['field_name'], $column, array($this->value['min'], $this->value['max']), "BETWEEN", efq_views_extract_delta($this));
}
}
Comment | File | Size | Author |
---|---|---|---|
#1 | efq_views-broken_numeric_filter_between_op-2070321.patch | 1.09 KB | asgorobets |
Comments
Comment #1
asgorobets CreditAttribution: asgorobets commentedPatch attached.
Comment #2
rliThe patch makes sense and works to me.
Please commit.