1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-06 03:02:34 +01:00

Remove json validation

This commit is contained in:
David Bomba 2019-10-07 08:13:16 +11:00
parent 165182266a
commit 6ea2140578
5 changed files with 5 additions and 5 deletions

View File

@ -37,7 +37,7 @@ class StoreClientRequest extends Request
/* Ensure we have a client name, and that all emails are unique*/ /* Ensure we have a client name, and that all emails are unique*/
$rules['name'] = 'required|min:1'; $rules['name'] = 'required|min:1';
$rules['id_number'] = 'unique:clients,id_number,,id,company_id,' . auth()->user()->company()->id; $rules['id_number'] = 'unique:clients,id_number,,id,company_id,' . auth()->user()->company()->id;
$rules['settings'] = 'json'; //$rules['settings'] = 'json';
$contacts = request('contacts'); $contacts = request('contacts');

View File

@ -38,7 +38,7 @@ class UpdateClientRequest extends Request
$rules['currency_id'] = 'integer|nullable'; $rules['currency_id'] = 'integer|nullable';
$rules['country_id'] = 'integer|nullable'; $rules['country_id'] = 'integer|nullable';
$rules['shipping_country_id'] = 'integer|nullable'; $rules['shipping_country_id'] = 'integer|nullable';
$rules['settings'] = 'json'; // $rules['settings'] = 'json';
$contacts = request('contacts'); $contacts = request('contacts');

View File

@ -35,7 +35,7 @@ class StoreCompanyRequest extends Request
return [ return [
'name' => 'required', 'name' => 'required',
'logo' => 'mimes:jpeg,jpg,png,gif|max:10000', // max 10000kb 'logo' => 'mimes:jpeg,jpg,png,gif|max:10000', // max 10000kb
'settings' => 'json', // 'settings' => 'json',
// 'documents' => 'mimes:png,ai,svg,jpeg,tiff,pdf,gif,psd,txt,doc,xls,ppt,xlsx,docx,pptx', // 'documents' => 'mimes:png,ai,svg,jpeg,tiff,pdf,gif,psd,txt,doc,xls,ppt,xlsx,docx,pptx',
]; ];
} }

View File

@ -35,7 +35,7 @@ class StoreGroupSettingRequest extends Request
return [ return [
'name' => 'required', 'name' => 'required',
'settings' => 'json', // 'settings' => 'json',
]; ];
} }

View File

@ -32,7 +32,7 @@ class UpdateGroupSettingRequest extends Request
{ {
return [ return [
'settings' => 'json', // 'settings' => 'json',
]; ];
} }