Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nalipaz/5ee5b60a8fd57b4e7c9642477e7c6798 to your computer and use it in GitHub Desktop.
Save nalipaz/5ee5b60a8fd57b4e7c9642477e7c6798 to your computer and use it in GitHub Desktop.
diff --git a/core/modules/views/src/Plugin/views/filter/NumericFilter.php b/core/modules/views/src/Plugin/views/filter/NumericFilter.php
index e7720df..a183d77 100644
--- a/core/modules/views/src/Plugin/views/filter/NumericFilter.php
+++ b/core/modules/views/src/Plugin/views/filter/NumericFilter.php
@@ -82,7 +82,7 @@ function operators() {
'regular_expression' => array(
'title' => $this->t('Regular expression'),
'short' => $this->t('regex'),
- 'method' => 'op_regex',
+ 'method' => 'opRegex',
'values' => 1,
),
);
@@ -274,7 +274,7 @@ protected function opEmpty($field) {
* The expression pointing to the queries field, for example "foo.bar".
*/
protected function opRegex($field) {
- $this->query->addWhere($this->options['group'], $field, $this->value, 'REGEXP');
+ $this->query->addWhere($this->options['group'], $field, $this->value['value'], 'REGEXP');
}
public function adminSummary() {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment