Skip to content

Conversation

@didoda
Copy link
Member

@didoda didoda commented Aug 6, 2025

This provides a bugfix.
When you save a new object with permissions or related items in the form, BEM processes data save in different steps (it's not a transaction): first it saves the object, then permissions, then related items.

Buggy behaviour: if there is an exception in "saving permissions" or "saving related items", new object is saved but the page is still "new object page".

Fixed behaviour: if there is an exception in "saving permissions" or "saving related items", new object is saved, there's a redirect to the new object page with proper flash error(s).

@didoda didoda added this to the 5.x milestone Aug 6, 2025
@didoda didoda added bug Something isn't working Priority - High release:patch labels Aug 6, 2025
@didoda didoda marked this pull request as ready for review August 6, 2025 11:22
@didoda didoda merged commit 84a36a2 into bedita:master Aug 6, 2025
7 checks passed
@didoda didoda deleted the fix/save-permissions-or-related-do-redirect branch August 6, 2025 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant