- Issue created by @_renify_
- last update
over 1 year ago 29,483 pass - Status changed to Needs review
over 1 year ago 12:06pm 25 September 2023 - Status changed to Needs work
over 1 year ago 1:41pm 25 September 2023 - 🇺🇸United States smustgrave
Thank for reporting.
We will need a test to show this issue, but also may need to dig deeper. Typically these kind of issues putting an isset or !empty is masking an actual problem.
- 🇵🇭Philippines _renify_ cebu
There is error message encounter on 3389478-date-1.patch so i uploaded new patch.
- last update
over 1 year ago 29,672 pass - 🇧🇪Belgium dieterholvoet Brussels
I think adding those
empty()
calls is enough here, since the same check is being done in the child methodDrupal\views\Plugin\views\filter\Date::acceptExposedInput()
:if ($operators[$operator]['values'] == 1) { // When the operator is either <, <=, =, !=, >=, > or regular_expression // the input contains only one value. if ($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 (empty($this->value['min']) || empty($this->value['max'])) { return FALSE; } }
- 🇧🇪Belgium dieterholvoet Brussels
DieterHolvoet → changed the visibility of the branch 10.1.x to hidden.
- First commit to issue fork.
- First commit to issue fork.
- 🇮🇳India arunkumark Coimbatore
Updated issue summary as per issue summary document. →
- Status changed to Needs review
8 months ago 7:25am 16 August 2024 - 🇮🇳India arunkumark Coimbatore
Run the PHPUnit locally, Not getting any errors. But getting errors, but getting error git pipeline.
- Status changed to Needs work
8 months ago 12:24pm 20 August 2024 - 🇺🇸United States smustgrave
Previously tagged for tests so moving back for those
Did not review.
- 🇮🇳India arunkumark Coimbatore
arunkumark → changed the visibility of the branch 3389478-warning-undefined-array-11.x to hidden.
- 🇮🇳India arunkumark Coimbatore
arunkumark → changed the visibility of the branch 3389478-warning-undefined-array-11.x to active.
- 🇮🇳India arunkumark Coimbatore
arunkumark → changed the visibility of the branch 3389478-warning-undefined-array to hidden.
- Status changed to Needs review
8 months ago 8:16am 21 August 2024 - 🇮🇳India arunkumark Coimbatore
Added empty condition for date filter and test for MIN and MAX empty on date filter.
- Status changed to Needs work
7 months ago 8:53pm 5 September 2024 - 🇺🇸United States smustgrave
Believe the tests need some work as the test-only feature is passing when it should fail.
- Status changed to Needs review
7 months ago 3:37pm 9 September 2024 - 🇺🇸United States smustgrave
Test-only is still passing when it should be failing.
- 🇮🇳India arunkumark Coimbatore
@smustgrave
Verified the Failing jobs are irrelated to the changes. After syncing the latest 11.x branch the issue was resolved. - 🇮🇳India shalini_jha
I have investigated this test case and observed that the warning appears only under specific conditions. Initially, when we add a date as an exposed filter and select the 'Between' operator, the warning does not appear upon saving the view. However, if we edit the date exposed filter, switch from 'single filter' to 'group filters,' and again select the 'Between' operator for the group filters, saving the view triggers the warning. When we access the view page and select the 'All' option, the warning arises because the single filter operator is still set to 'Between,' but the 'min' and 'max' values are not available for the 'All' option.
To demonstrate this behaviour, I modified the test case to show the warning. After applying the solution, the test case passes successfully.
pipeline still failing somehow. - 🇮🇳India arunkumark Coimbatore
@shalini_jha It seems the pipeline issue was random. After rerunning it, it was resolved. I also verified the file; it was irrelevant to the change made.
- 🇮🇳India shalini_jha
i have addressed the feedback. and updated the MR , it seems again pipeline fail with not related to this changes.
- 🇮🇳India shalini_jha
I have re running the pipeline and now it is fixed. so moving this for NR. Kindly review.
- 🇧🇷Brazil mauriciopieper
This issue also happens when you use values for date fields instead of the range option (min/max), but when doing that, it throws the warning on the key 'value':
Warning: Undefined array key "value" in Drupal\views\Plugin\views\filter\NumericFilter->acceptExposedInput() (line 448 of core/modules/views/src/Plugin/views/filter/NumericFilter.php).
I am adding a patch because I do not want to commit the changes to the MR since it is already under review. However, I believe it makes sense to address that as part of this issue. In that case, we would probably need to update the issue's title to be more precise.
- 🇬🇧United Kingdom oily Greater London
#34 I think should be created as a child issue. There is still considerable work required to complete this issue in itself.
The test-only feature is now working correctly.
Removing the Needs tests tag.
- 🇮🇳India shalini_jha
Thank you for your review. Since this issue is related to the warning and the test already displays the warning message without any UI changes, is it still necessary to include a screenshot for this?
- 🇬🇧United Kingdom oily Greater London
Okay I will remove it. I have not reproduced the issue yet. So long as it can be reproduced using the steps it should be okay.
- 🇺🇸United States smustgrave
Believe feedback has been addressed.
Not super liking having to do all the manual changes vs having a view already setup but seems to be how it's already setup.
Tests are still showing coverage https://git.drupalcode.org/issue/drupal-3389478/-/jobs/3697086
Replicated this is fixed manually following steps in summary, so LGTM.
- Status changed to Needs work
about 1 month ago 3:56pm 3 March 2025 - 🇬🇧United Kingdom catch
I think this should use a strict comparison so that it handles '0' correctly.