Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use template string with wildcard as value_field for relation widget #5487

Open
vnourdin opened this issue Jun 7, 2021 · 1 comment

Comments

@vnourdin
Copy link
Contributor

vnourdin commented Jun 7, 2021

Describe the bug
When using a template string that contains a * wildcard (to access every item of a list) as value_field of a relation widget, the widget says "No options".

To Reproduce

  1. Create a list widget, with fields a and b, and populate it
  2. Create a relation widget that points to the previous list
  3. Set value_field to 'mylist.*.a'
  4. It works
  5. Set value_field to 'a is {{mylist.*.a}} - and b {{mylist.*.b}}'
  6. It says "No options"

Expected behavior
Template string should work even with wildcard.

@vnourdin vnourdin added the type: bug code to address defects in shipped code label Jun 7, 2021
@vnourdin
Copy link
Contributor Author

vnourdin commented Jun 7, 2021

Initial discussion in #3712 (comment), generating the field in the list collection with preSave event is a workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants