mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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()
|
public function rules()
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'name' => sprintf('required|unique:projects,name,,id,account_id,%s', $this->user()->account_id),
|
'name' => 'required',
|
||||||
'client_id' => 'required',
|
'client_id' => 'required',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@ class UpdateProjectRequest extends ProjectRequest
|
|||||||
}
|
}
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'name' => sprintf('required|unique:projects,name,%s,id,account_id,%s', $this->entity()->id, $this->user()->account_id),
|
'name' => 'required',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user