As in the issue title - refers to all operator elements that are exposed.
| Comment | File | Size | Author |
|---|---|---|---|
| #20 | 3173822-20-view_ef_fieldset-operator-issue.patch | 2.86 KB | viniciusrp |
| #9 | Screenshot 2021-06-09 at 10.13.26.png | 160.55 KB | leon kessler |
| #9 | Screenshot 2021-06-09 at 10.13.07.png | 136.5 KB | leon kessler |
| #2 | 3173822-views_ef_fieldset-operator_issue-2.patch | 2.15 KB | graber |
Issue fork views_ef_fieldset-3173822
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
graber commentedComment #5
johnzzonI created a merge request with the patch from #2 and also added a few null coalescing operators that fixes undefined index issues when $form_info was empty.
Comment #6
leon kessler commentedTried out both the patch from #2 and the MR on gitlab.
When using the patch from #2, I get the following fatal error (when visiting the view page):
With the changes from the MR, everything works fine.
Comment #7
leon kessler commentedJust updating my site to Drupal 9, and having exposed operators breaks the layout pretty badly. I believe due to #2625136: Fix label visibility and add wrapper container for exposed numeric/date filters with multiple form elements.
We may have to exclude fields with exposed operators from being added to a fieldset, as Drupal core is now already doing this.
Comment #8
graber commented@Leon, can you add some specific details why this needs work?
Comment #9
leon kessler commentedHere are some screenshots of before and after. This was taken on a fresh install via simplytest.me. Without the patch from this issue (so it could technically be a separate issue, but as this one is already dealing with exposed operators it makes sense to keep this in one place).
First is the filters placed into fieldsets, but without any exposed operators:

After exposing the operator on the content type field. You can see the layout breaks.

I updated the MR with a fix for this, see https://git.drupalcode.org/issue/views_ef_fieldset-3173822/-/commit/69dd...
This means that the change now supports both the old style and new style for exposed filters.
Comment #10
leon kessler commentedComment #11
graber commentedIf I only remembered or had access to the specific project issue.. We'll see if someone will find this helpful so maybe the question will be answered again.
Comment #12
attisanFixed the problem and found this issue afterwards while creating an issue on my own. Discard it if it's not welcome.
Comment #13
attisanfixed my broken patch 🙄
Comment #14
saccard commentedI can confirm that #13 works with dev version from 7 Oct 2021.
Tested it with a view with 36 exposed filters grouped in 6 field sets and 7 filters with exposed operators.
Thanks for the patch.
Comment #15
leon kessler commentedPlease can people test the MR and not the patch from #13, since this has had more work on it, and is a collaborative effort.
FYI you can download a patch file from gitlab by appending
.patchto the diff url.I.e. https://git.drupalcode.org/project/views_ef_fieldset/-/merge_requests/1/...
Comment #16
saccard commented@Leon: I tested the MR in #15 (Thanks for the hint with appending .patch to the diff url).
I can confirm that it works with my view described in #14. All exposed filters are working and are in the correct place. No errors or warnings in drupal's dblog. Everything looks fine.
Comment #18
davidwhthomas commentedThe current MR version fixed the issue I was having where date filters with exposed operators were not grouped inside the fieldsets, with thanks.
Comment #19
eli-tApologies - merge request now conflicts with HEAD of 8.x-1.x.
Comment #20
viniciusrp commentedI reworked the patch from merge-request to be compatible with new version.
Comment #21
eli-t@viniciusrp can you please update the merge request instead of posting patches? That will run the CI.
Comment #23
r_cheh commentedConflicts were fixed
Comment #25
eli-tThis looks good, moving to RTBC and adding credit
Comment #27
eli-t