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

Fixes for non sticking fields in project

This commit is contained in:
David Bomba 2020-10-29 11:09:51 +11:00
parent 1bda0190bb
commit 85eb1a990a
3 changed files with 5 additions and 2 deletions

View File

@ -37,7 +37,7 @@ class StoreProjectRequest extends Request
$rules['name'] = 'required';
$rules['client_id'] = 'required|exists:clients,id,company_id,'.auth()->user()->company()->id;
return $rules;
return $this->globalRules($rules);
}
protected function prepareForValidation()

View File

@ -31,7 +31,9 @@ class UpdateProjectRequest extends Request
public function rules()
{
return [];
$rules = [];
return $this->globalRules($rules);
}
protected function prepareForValidation()

View File

@ -37,6 +37,7 @@ class Project extends BaseModel
'custom_value2',
'custom_value3',
'custom_value4',
'assigned_user_id',
];
public function getEntityType()