Changes are not saved for some submit buttons

Created on 24 November 2016, about 8 years ago
Updated 9 December 2023, about 1 year ago

Currently, new inline entities will only be saved if the 'submit', 'publish' or 'unpublish' actions are performed.
From ElementSubmit.php:

foreach (['submit', 'publish', 'unpublish'] as $action) {

If a new submit button (in our case 'Save and Continue') is added to the form, IEF is not adding the necessary submit handlers to that action.

IEF could instead add its necessary submit handlers to all actions.
i.e.

foreach (Element::children($form['actions']) as $action) {

Patch attached.

🐛 Bug report
Status

Needs work

Version

3.0

Component

Code

Created by

🇦🇺Australia drasgardian

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024