1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Project name should be required

This commit is contained in:
David Bomba 2020-10-16 08:19:55 +11:00
parent d5ccb17624
commit 62fe99c2d5

View File

@ -33,7 +33,8 @@ class StoreProjectRequest extends Request
{
$rules = [];
$rules['name'] ='required|unique:projects,name,null,null,company_id,'.auth()->user()->companyId();
//$rules['name'] ='required|unique:projects,name,null,null,company_id,'.auth()->user()->companyId();
$rules['name'] = 'required';
$rules['client_id'] = 'required|exists:clients,id,company_id,'.auth()->user()->company()->id;
return $rules;