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:
parent
1bda0190bb
commit
85eb1a990a
@ -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()
|
||||
|
@ -31,7 +31,9 @@ class UpdateProjectRequest extends Request
|
||||
|
||||
public function rules()
|
||||
{
|
||||
return [];
|
||||
$rules = [];
|
||||
|
||||
return $this->globalRules($rules);
|
||||
}
|
||||
|
||||
protected function prepareForValidation()
|
||||
|
@ -37,6 +37,7 @@ class Project extends BaseModel
|
||||
'custom_value2',
|
||||
'custom_value3',
|
||||
'custom_value4',
|
||||
'assigned_user_id',
|
||||
];
|
||||
|
||||
public function getEntityType()
|
||||
|
Loading…
Reference in New Issue
Block a user