postleaf icon indicating copy to clipboard operation
postleaf copied to clipboard

When editing an existing post, errors in the slug do not appear but you get "can not save the changes now"

Open callingmybluff opened this issue 6 years ago • 1 comments

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

  1. Make a draft, and set a slug to it.
  2. Save the changes.
  3. Change the "slug" to something invalid, like: "2018" (not allowed as it starts with a number).
  4. Try saving the changes
  5. 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.

callingmybluff avatar Jun 22 '18 12:06 callingmybluff

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 :)

claviska avatar Jun 23 '18 22:06 claviska