- 🇮🇳India saurabh.tripathi.cs
Is there a patch for D10?
i have changed #56 a bit to match with D10/** * {@inheritdoc} */ public function &getValues() { $exists = NULL; if ($this->isProcessingInput()) { $values = &NestedArray::getValue(parent::getValues(), $this->getParents('#parents'), $exists); } else { @trigger_error("Please don't.", E_USER_DEPRECATED); } if (!$exists) { $values = []; } if (!is_array($values)) { throw new \UnexpectedValueException('The form state values do not belong to the subform.'); } return $values; }
- last update
7 months ago Custom Commands Failed - last update
7 months ago Custom Commands Failed - 🇷🇴Romania bbu23
I have the following setup:
1. A configuration entity that builds the add form using ajax. The field that triggers ajax is a plugin select list.
2. When a plugin is selected, the form includes subforms of the plugins, using ajax. All okay.
3. If one of the plugin's form (the subform) is using ajax, then the error can appear when attempting to retrieve values from the SubFormState in the build form area. The ajax calls within the plugin form will also have the form state of the parent.It seems like ajax inside subform of an ajax loaded parent form does not work well.