- Issue created by @srees
- First commit to issue fork.
- 🇬🇧United Kingdom MrDaleSmith
Looks OK, but do you have any idea why you are getting definitions that don't appear in the form state?
- 🇺🇸United States srees
The specific id that is generating the error is 'moderate', which is returning NULL for $form_state->getValue($id);
My settings page does not display the 'Moderate' section options, I'm not sure why that is.
Aside from that, I believe the issue is that when generating the form, only plugins that are 'available' are displayed. However, when processing the submission, that check is not implemented until later in the function resulting in this error due to the field not being present.
- Merge request !473Move form value retrieval inside isAvailable check → (Closed) created by Unnamed author
- 🇬🇧United Kingdom MrDaleSmith
Given the issue you noted in https://www.drupal.org/project/ai/issues/3507595#comment-15997814 🐛 Content Suggestions: All generate Ajax error Active should this ticket be closed? Was this caused by the azure provider as well?
- 🇺🇸United States srees
No, there is a separate issue here in this module. I updated the merge request to correct the root cause of the issue in #9.
- 🇨🇦Canada RobLoach Earth
Tested locally, and worked here.
Side-note: Should we also check the validity of
$value[$id . '_model']
? - 🇺🇸United States srees
I believe the root cause was trying to retrieve a form value that wasn't available.
I don't like the array check because it hides a symptom without solving the problem. I would not add any more array checks for this reason, unless it is actually considered a valid state for the code to be in.
-
marcus_johansson →
committed 75416b9a on 1.1.x authored by
anjaliprasannan →
#3507593: Array check added.
-
marcus_johansson →
committed 75416b9a on 1.1.x authored by
anjaliprasannan →
-
marcus_johansson →
committed 75416b9a on 3479388-tools-with-context authored by
anjaliprasannan →
#3507593: Array check added.
-
marcus_johansson →
committed 75416b9a on 3479388-tools-with-context authored by
anjaliprasannan →
Automatically closed - issue fixed for 2 weeks with no activity.