Created
February 2, 2017 20:43
-
-
Save nalipaz/5ee5b60a8fd57b4e7c9642477e7c6798 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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