Skip to content
Snippets Groups Projects

fix stripos error on contains filter

@@ -226,6 +226,9 @@ class ViewsCsvFilter extends FilterPluginBase {
@@ -226,6 +226,9 @@ class ViewsCsvFilter extends FilterPluginBase {
$selected_column = $this->options['key'];
$selected_column = $this->options['key'];
$info = $this->operators();
$info = $this->operators();
if (!empty($info[$this->operator]['method'])) {
if (!empty($info[$this->operator]['method'])) {
 
if (is_array($this->value)) {
 
$this->value = $this->value[0];
 
}
$this->{$info[$this->operator]['method']}($selected_column);
$this->{$info[$this->operator]['method']}($selected_column);
}
}
}
}
Loading