Skip to content

Entity save - Handle preSave callback error - #1015

Open
AleksandarCila wants to merge 2 commits into
firecmsco:mainfrom
AleksandarCila:bug/stop-form-submit-on-presave-error
Open

AleksandarCila wants to merge 2 commits into
firecmsco:mainfrom
AleksandarCila:bug/stop-form-submit-on-presave-error

Conversation

@AleksandarCila

Copy link
Copy Markdown
Contributor

When you edit an entity of a collection that have a defined preSave callback (both side controller or full screen editor), on save, if preSave callback throws an error, form will behave as that entity was saved. Save doesnt really happen, but form behaves as if it does, and it can be misleading for a user.

Presave_error.mov

I have added custom error wrapper that is used to track in which stage of saving process error occurred.

I have been investigating this issue: #713
I didnt quite understand, but it seems that both from direct table editing, or through form, error handling on presave callback is handled both visually and logically. Feel free to close the issue if you think this helps in solving it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant