- Issue created by @djg_tram
- 🇭🇺Hungary djg_tram
A quick solution would be to change the condition near the end of
InlineEntityFormAlterManager::getInstance()
to:if ( (($options['type'] == 'table_fields') && !empty($configuration) && $options['entity_type'] == $definition['entity_type'] && $options['parent_entity_type'] == $definition['parent_entity_type']) ) {
Actually, I can't decide what the optional part comparing the counts of the two array was intended to do in the first place...
- 🇭🇺Hungary djg_tram
A better way that, I think, handless all cases:
switch ($options['type']) { case 'table_fields': if (!empty($configuration) && $options['entity_type'] == $definition['entity_type'] && $options['parent_entity_type'] == $definition['parent_entity_type']) $plugins[$plugin_id] = $this->createInstance($plugin_id, $configuration); break; default: if (!empty($configuration) && $options['entity_type'] == $definition['entity_type'] && $options['bundle'] == $definition['bundle']) $plugins[$plugin_id] = $this->createInstance($plugin_id, $configuration); break; }
- 🇮🇹Italy aronne
Hi @djg_tram,
could you try this patch and let me know if it works correctly for you?
Thanks. - Status changed to Needs review
about 1 year ago 2:15pm 8 September 2023 - Status changed to Active
about 1 year ago 2:18pm 8 September 2023 - Status changed to Fixed
about 1 year ago 10:34am 31 October 2023 Automatically closed - issue fixed for 2 weeks with no activity.