Skip to content
Snippets Groups Projects

Issue #3294700: Warning: Undefined array key "type" in Drupal\views\Plugin\views\filter\Date->acceptExposedInput()

Open Issue #3294700: Warning: Undefined array key "type" in Drupal\views\Plugin\views\filter\Date->acceptExposedInput()
Files
2
@@ -124,7 +124,7 @@ public function acceptExposedInput($input) {
// Store this because it will get overwritten.
$type = NULL;
if ($this->isAGroup()) {
if (is_array($this->group_info)) {
if (is_array($this->group_info) && isset($this->group_info['type'])) {
$type = $this->group_info['type'];
}
}
@@ -150,13 +150,16 @@ public function acceptExposedInput($input) {
if ($operators[$operator]['values'] == 1) {
// When the operator is either <, <=, =, !=, >=, > or regular_expression
// the input contains only one value.
if ($this->value['value'] == '') {
if (isset($this->value['value'])) {
return FALSE;
}
}
elseif ($operators[$operator]['values'] == 2) {
// When the operator is either between or not between the input contains
// two values.
if (!isset($this->value['min']) || !isset($this->value['max'])) {
return FALSE;
}
if ($this->value['min'] == '' || $this->value['max'] == '') {
return FALSE;
}
Loading