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:
parent
c8192f392b
commit
2d49c472c0
@ -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',
|
||||
];
|
||||
}
|
||||
|
@ -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',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user