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:
parent
165182266a
commit
6ea2140578
@ -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');
|
||||||
|
|
||||||
|
@ -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');
|
||||||
|
|
||||||
|
@ -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',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,7 @@ class StoreGroupSettingRequest extends Request
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
'name' => 'required',
|
'name' => 'required',
|
||||||
'settings' => 'json',
|
// 'settings' => 'json',
|
||||||
];
|
];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@ class UpdateGroupSettingRequest extends Request
|
|||||||
{
|
{
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'settings' => 'json',
|
// 'settings' => 'json',
|
||||||
];
|
];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user