
I installed the Chosen module to make the select button more user friendly. When I select a first value in Field 1 (which is a taxonomy term reference), Field 2 (which is an Entity Reference) options get normally modified by Field 1. However, when I select a second value in Field 1, I get these errors for Field 2:
- An illegal choice has been detected. Please contact the site administrator.
- Notice : Undefined index: 237,247 in taxonomy_field_validate() (line 1532 in /htdocs/drupal/modules/taxonomy/taxonomy.module).
- Notice : Trying to get property 'vocabulary_machine_name' of non-object in taxonomy_field_validate() (line 1532 in /htdocs/drupal/modules/taxonomy/taxonomy.module).
If both my fields are entity reference fields, I only get "An illegal choice has been detected. Please contact the site administrator."
I tried to apply patches from these topics:
https://www.drupal.org/project/reference_option_limit/issues/2794041
https://www.drupal.org/project/reference_option_limit/issues/1986526
But it doesn't solve this issue or failed to apply.
Any idea?
Comments