October: Relation view filter widget has not been bound to the controller

Created on 28 Apr 2020  路  8Comments  路  Source: octobercms/october

  • OctoberCMS Build: 465
  • PHP Version: 7.3

Description:

tags

Steps To Reproduce:

  • relation Category hasMany Articles
  • render relation view widget in category preview page with custom filter scopes.
  • type something to search fields of any group type scope.
Completed Bug

All 8 comments

@alxy is this related to the stuff you did?

Probably yes, but does the filtering work, just the search doesn't?
@Rike-cz Maybe you can look into it, I have started a new job and don't have too much time now.

@Rike-cz my guess is that since the popover DOM nodes are technically at the root of the document and not inside the parent form element the required relation POST variable is not being sent with the search AJAX request which means that the relationcontroller isn't initializing the required widgets.

Probably yes, but does the filtering work, just the search doesn't?

@alxy Yes, filtering works only search does not.
It looked like simple one line missing problem but what I inspected and @LukeTowers wrote, it is not so simple...

It shouldn't be too difficult, you just need to be able to provide the relation field in the AJAX requests sent by the filters.

I can confirm the issue.

While trying to fix this, I have realized that it is actually a duplicate of https://github.com/octobercms/october/issues/4775 , which has already been fixed by @bennothommo . Nice work there! It works for me in view and manage mode.

@alxy Thanks for letting us know about the duplication.

This issue is fixed by 9155e7d.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

LukeTowers picture LukeTowers  路  3Comments

jvanremoortere picture jvanremoortere  路  3Comments

sozonovalexey picture sozonovalexey  路  3Comments

ChVuagniaux picture ChVuagniaux  路  3Comments

m49n picture m49n  路  3Comments