A free open source IT asset/license management system
Fix Location parent different validation on new location creation.
Daniel Meltzerc74b904f141a
diff --git a/app/Http/Controllers/LocationsController.php b/app/Http/Controllers/LocationsController.phpindex 5d76d59e67..86476867c1 100755--- a/app/Http/Controllers/LocationsController.php+++ b/app/Http/Controllers/LocationsController.php@@ -67,6 +67,7 @@ class LocationsController extends Controller{$this->authorize('create', Location::class);$location = new Location();+ $location->id = null; // This is required to make Laravels different validation work, it errors if the parameter doesn't exist (maybe a bug)?$location->name = $request->input('name');$location->parent_id = $request->input('parent_id', null);$location->currency = $request->input('currency', '$');