When editing an existing post, errors in the slug do not appear but you get "can not save the changes now"
callingmybluff opened this issue · comments
Ismaeel commented
Summary
So when you are making changes to an existing draft, mistakes in the "slug" prevent saving he changes, and the user get a vague message.
Steps to Reproduce
- Make a draft, and set a slug to it.
- Save the changes.
- Change the "slug" to something invalid, like: "2018" (not allowed as it starts with a number).
- Try saving the changes
- You will get "Your changes could not be saved at this time" instead of the more specific: "Slug must start with a letter ... etc".
Additional info
- Postleaf version: 1.0
- Node version: 7.10.1
- Affected browsers: Chrome
- Operating system: Debian 8 (host) vs. Windows (Browser)
Note: This issue tracker is ONLY for bug reports and feature requests. If this is a personal support issue, please visit postleaf.org/support.
Cory LaViska commented
Confirmed. It looks like we're not handling the validation error from the post model.
I'll leave this open until I can get to it, or feel free to submit a PR instead :)