- Issue created by @SunnyGambino
- 🇭🇺Hungary SunnyGambino Buj
Let me share the proposed solution as a patch.
--- web/core/modules/views/src/Plugin/views/filter/Date.php +++ web/core/modules/views/src/Plugin/views/filter/Date.php @@ -144,7 +144,7 @@ public function acceptExposedInput($input) { elseif ($operators[$operator]['values'] == 2) { // When the operator is either between or not between the input contains // at least one value. - if ($this->value['min'] == '' && $this->value['max'] == '') { + if (empty($this->value['min']) && empty($this->value['max'])) { return FALSE; } } --- web/core/modules/views/src/Plugin/views/filter/NumericFilter.php +++ web/core/modules/views/src/Plugin/views/filter/NumericFilter.php @@ -451,7 +451,7 @@ public function acceptExposedInput($input) { break; case 2: - if ($value['min'] === '' && $value['max'] === '') { + if (empty($value['min']) && empty($value['max'])) { return FALSE; } break;
- Status changed to Postponed: needs info
3 months ago 4:46pm 15 August 2024 - 🇮🇳India arunkumark Coimbatore
@sunnygambino
It seems the 🐛 Warning: Undefined array key "min" in Drupal\views\Plugin\views\filter\NumericFilter->acceptExposedInput() (line 437 of core/modules/views/src/Plugin/views/filter/NumericFilter.php) Needs work is the same issue you're facing. Am closing as a duplicate. Kindly re-open if you face any other issue with different from the previous issue.
The issue https://www.drupal.org/project/drupal/issues/3389478 🐛 Warning: Undefined array key "min" in Drupal\views\Plugin\views\filter\NumericFilter->acceptExposedInput() (line 437 of core/modules/views/src/Plugin/views/filter/NumericFilter.php) Needs work created for the 11.x version we can create backmerge compatible for the 10.x version.
- Status changed to Closed: duplicate
3 months ago 3:38am 16 August 2024