You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In section events with the Allow Multiple option set you can't simultaneously create and edit entries. This is because every new entry gets the id of previous existing entries passed, so you are editing an existing entry with the post values from a new entry. This is because in line 421 of event.section.php
if (isset($post['id'][$position]) && is_numeric($post['id'][$position])) {
$entry_id = $post['id'][$position];
}
$entry_id doesn't get reset when $post['id'][$position] is not set (for new entries). I think that just appending
else {
$entry_id = NULL;
}
to those lines solves this issue.
The text was updated successfully, but these errors were encountered:
No, the logic appears abstracted so that it's as if you were executing '3' events, so I don't think it matters that it swaps between editing and creating new.
I can't say I've given it a through test though, so feel free to Reopen if you find any issues.
In section events with the Allow Multiple option set you can't simultaneously create and edit entries. This is because every new entry gets the
id
of previous existing entries passed, so you are editing an existing entry with the post values from a new entry. This is because in line 421 ofevent.section.php
$entry_id
doesn't get reset when$post['id'][$position]
is not set (for new entries). I think that just appendingto those lines solves this issue.
The text was updated successfully, but these errors were encountered: