From 62e68ec66f19b96372aee538fc8aad4a3e61c985 Mon Sep 17 00:00:00 2001 From: "Michael (Parker) Parker" Date: Sat, 2 Mar 2019 16:27:36 -0500 Subject: [PATCH] Fix for Locations PATCH endpoint (#1499) --- CHANGELOG.md | 4 ++++ .../Api/Application/Locations/UpdateLocationRequest.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d42043df..2df5d805f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ This file is a running track of new features and fixes to each version of the pa This project follows [Semantic Versioning](http://semver.org) guidelines. +## v0.7.13 (Derelict Dermodactylus) +### Fixed +* Fixes a bug with the location update API endpoint throwing an error due to an unexected response value. + ## v0.7.12 (Derelict Dermodactylus) ### Fixed * Fixes an issue with the locations API endpoint referencing an invalid namespace. diff --git a/app/Http/Requests/Api/Application/Locations/UpdateLocationRequest.php b/app/Http/Requests/Api/Application/Locations/UpdateLocationRequest.php index 3a8a15c5f..2d83ab08f 100644 --- a/app/Http/Requests/Api/Application/Locations/UpdateLocationRequest.php +++ b/app/Http/Requests/Api/Application/Locations/UpdateLocationRequest.php @@ -30,6 +30,6 @@ class UpdateLocationRequest extends StoreLocationRequest return collect(Location::getUpdateRulesForId($locationId))->only([ 'short', 'long', - ]); + ])->toArray(); } }