Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
Now, if you do any operation on referenced entity through IEF widget, it gets saved only after Parent entity is saved.
Is there a way to force updating/saving entity even if parent entity is not yet submited?
I've looked at calling eck__entity__form_submit but without luck.
Thx
Comments
Comment #2
nbchip CreditAttribution: nbchip at Websolutions Agency commentedFound Solution,
Extended EntityInlineEntityFormController (or better ECK) and in overridden method entityFormSubmit added entity_save.
To use new controller u need to set it in hook_entity_info_alter for your entity.
Comment #3
emmanvazz CreditAttribution: emmanvazz as a volunteer commentedFor those that are looking to save nodes you can also use the node_save function, add that at the end of the entityFormSubmit override.