- Issue created by @erdm
- πΊπΈUnited States niles38
Hi. Sorry that you're having problems.
Is the view working correctly? Could you post what your view is?
Hi niles38,
I think I solved some parts but not all.What I have changed is (form_filter_fields.module)
I added "((string)" to the line blocks below...148: $straight_html = trim(strip_tags((string)$rendered->jsonSerialize(), "<li>")); 156: $rough_html = trim(strip_tags((string)$rough_html)); 162 : strip_tags((string)$rough_html_pieces[1])
Now it's working.Log warning messages and The referenced entity (taxonomy_term: ABC) does not exist warning message is gone.
But:
Warning is gone but it's still not working with multi-value controller(field_team). It's working with controller field with limited 1 value.
For example I can't achieve if I want to get Barcelona and Liverpool players together.When I change controller field to unlimited values(managed field), target field can not be filtered. All players are on the list.Single controller is working after code revised.
Screenshots
View
Term name
Contextual Filter
- πΊπΈUnited States niles38
Under the Configure Contextual Filters and under "When The Filter Value Is Not Available I have "Display all results for the specified field".
Could you send me what your preview looks like (at the bottom of the view) when you type in a number in the "Preview with contextual filters:" field? See attached.
Sorry , I've sent the wrong image.
There is no problem with the view preview. Even multi-controller is working.
Here's previews with "Display all results for the specified field"
Barcelona id is 34 (Players: Messi,Neymar,Figo)
Liverpool id is 37 (Players: Muhammed Salah)Single Controller
Multi-Controller
Note:FYI. There's other problem when you're editing the node. Target filter is not being filtered. It shows the whole list with other values belonging to unselected controller fields. Of course it would be better to open another issue.
- πΊπΈUnited States niles38
Okay, I think the problem is that this module wasn't designed for multi.
Let me look into this more. Maybe I can add that as a feature.
Also, when I was investigating this issue, I noticed the same thing with the edit. I'm not sure how that happened but I created another issue here: https://www.drupal.org/project/form_filter_fields/issues/3357951 π Values Not Filtering On Edit Node Fixed . I created a patch for this. If you wouldn't mind, could you test the patch to see if it works on yours?
Thanks!
Ok. I'm gonna test it now.
It would be greateful if you add multi-controller feature.
Thanks
- Status changed to Postponed: needs info
about 1 year ago 2:32pm 20 November 2023 - π§πͺBelgium tim-diels Belgium π§πͺ
@erdm, did you test that patch and did it solve your issue?