zachleigh / larafolio

A portfolio management system for Laravel.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Duplicate names for projects/pages are not caught when updating

zachleigh opened this issue · comments

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)

v1.0.0