diff --git a/VERSION.txt b/VERSION.txt index 8cd1f2d6abb9..d6701612336e 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -5.2.17 \ No newline at end of file +5.2.18 \ No newline at end of file diff --git a/app/Http/Requests/Client/StoreClientRequest.php b/app/Http/Requests/Client/StoreClientRequest.php index a27df9afb5d6..dbf51b660336 100644 --- a/app/Http/Requests/Client/StoreClientRequest.php +++ b/app/Http/Requests/Client/StoreClientRequest.php @@ -54,6 +54,7 @@ class StoreClientRequest extends Request /* Ensure we have a client name, and that all emails are unique*/ //$rules['name'] = 'required|min:1'; $rules['settings'] = new ValidClientGroupSettingsRule(); + $rules['contacts'] = 'array'; $rules['contacts.*.email'] = 'bail|nullable|distinct|sometimes|email'; $rules['contacts.*.password'] = [ 'nullable', diff --git a/app/Http/Requests/Client/UpdateClientRequest.php b/app/Http/Requests/Client/UpdateClientRequest.php index d160f20aa241..dd179d1d86e0 100644 --- a/app/Http/Requests/Client/UpdateClientRequest.php +++ b/app/Http/Requests/Client/UpdateClientRequest.php @@ -62,6 +62,7 @@ class UpdateClientRequest extends Request $rules['number'] = Rule::unique('clients')->where('company_id', auth()->user()->company()->id)->ignore($this->client->id); $rules['settings'] = new ValidClientGroupSettingsRule(); + $rules['contacts'] = 'array'; $rules['contacts.*.email'] = 'bail|nullable|distinct|sometimes|email'; $rules['contacts.*.password'] = [ 'nullable', diff --git a/config/ninja.php b/config/ninja.php index df8f43af1882..eb3f54f5b066 100644 --- a/config/ninja.php +++ b/config/ninja.php @@ -14,8 +14,8 @@ return [ 'require_https' => env('REQUIRE_HTTPS', true), 'app_url' => rtrim(env('APP_URL', ''), '/'), 'app_domain' => env('APP_DOMAIN', 'invoicing.co'), - 'app_version' => '5.2.17', - 'app_tag' => '5.2.17', + 'app_version' => '5.2.18', + 'app_tag' => '5.2.18', 'minimum_client_version' => '5.0.16', 'terms_version' => '1.0.1', 'api_secret' => env('API_SECRET', ''), diff --git a/resources/views/index/index.blade.php b/resources/views/index/index.blade.php index fcaf04fb8eaa..234deb431cac 100644 --- a/resources/views/index/index.blade.php +++ b/resources/views/index/index.blade.php @@ -3,7 +3,7 @@
-