Geeklog-Core / geeklog

Geeklog - The Secure CMS.
https://www.geeklog.net
24 stars 19 forks source link

When an Editor fails to Save the returned form fields should contain the User Content #1039

Open eSilverStrike opened 4 years ago

eSilverStrike commented 4 years ago

Mentioned in the Forum Post: https://www.geeklog.net/forum/viewtopic.php?showtopic=97229

  1. In block editor, when saving fails like the time you have no contents, id and class you already input are reset to blank.

  2. In article editor, when saving fails like time you have no intro, images are reset to blank.

This happens in several spots in Geeklog I believe with some like staticpages only working for some fields.

When a form fails to save for any reason (like content missing from a title, invalid data, etc...) the form should be returned with the error message but still populated with the information provided before by the user.

Need to check: Articles, Polls, Staticpages, Links (?), Blocks