1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Allow projects with the same name

This commit is contained in:
Hillel Coren 2017-11-15 21:49:42 +02:00
parent c8192f392b
commit 2d49c472c0
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ class CreateProjectRequest extends ProjectRequest
public function rules()
{
return [
'name' => sprintf('required|unique:projects,name,,id,account_id,%s', $this->user()->account_id),
'name' => 'required',
'client_id' => 'required',
];
}

View File

@ -26,7 +26,7 @@ class UpdateProjectRequest extends ProjectRequest
}
return [
'name' => sprintf('required|unique:projects,name,%s,id,account_id,%s', $this->entity()->id, $this->user()->account_id),
'name' => 'required',
];
}
}