Skip to content

Conversation

@SirPyTech
Copy link

@SirPyTech SirPyTech commented Jan 7, 2026

Steps:

  1. Create a domain field that contains False
  2. Associate the created field to a relational field
  3. In a form view, open the dropdown of the filtered relational field

Before this change:
The following client error is raised:

Error: second argument to Function.prototype.apply must be an array
eval_domains/<@https://domain.com/web_domain_field/static/lib/js/pyeval.js:156:40 [...]

After this change:
All the records can be selected

Additional context:
Fixes #882 that is closed because stale, not because it is fixed.

I struggled to add a test that fails without this change (as the UI does), but failed: the added test succeeds without this change too.
If anyone can help make the test fail without this change, it is much appreciated! Otherwise, at least we have added a test to the module.

The added test fails without this change.
For anyone who is interested: clicking on the dropdown does not open it, but clicking on the field label does.

@SirPyTech SirPyTech marked this pull request as ready for review January 7, 2026 15:40
Copy link

@Marco-ooops Marco-ooops left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test funzionale ok

@SirPyTech SirPyTech force-pushed the 14.0-fix-web_domain_field-default_empty_domain branch from 55eaecd to 4c0bd76 Compare January 8, 2026 14:48
Steps:
1. Create a domain field that contains `False`
2. Associate the created field to a relational field
3. In a form view, open the dropdown of the filtered relational field

Before this change:
The following client error is raised:
> Error: second argument to Function.prototype.apply must be an array
eval_domains/<@https://domain.com/web_domain_field/static/lib/js/pyeval.js:156:40
[...]

After this change:
All the records can be selected
@SirPyTech SirPyTech force-pushed the 14.0-fix-web_domain_field-default_empty_domain branch from 4c0bd76 to 1ee5763 Compare January 8, 2026 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants