Duplicate names for projects/pages are not caught when updating
zachleigh opened this issue · comments
Zach Leigh commented
When adding a project/page, duplicate names are caught and an error message is shown. When updating and changing the name to one that already exists, I get a 500 response caused by a sql error:
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'Project1' for key 'projects_name_unique' (SQL: update `projects` set `name` = Project1, `slug` = project1, `updated_at` = 2017-02-06 22:11:40 where `id` = 6)
Zach Leigh commented
v1.0.0