From 4e66ba078d4c33a6664f80d4f0a2ad2ea026f89c Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Thu, 16 Feb 2017 14:56:26 -0500 Subject: [PATCH] Fix locations error on create --- .../Controllers/Admin/NodesController.php | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/app/Http/Controllers/Admin/NodesController.php b/app/Http/Controllers/Admin/NodesController.php index d2eca4626..c1aa6a0c2 100644 --- a/app/Http/Controllers/Admin/NodesController.php +++ b/app/Http/Controllers/Admin/NodesController.php @@ -78,18 +78,11 @@ class NodesController extends Controller try { $repo = new NodeRepository; $node = $repo->create($request->only([ - 'name', - 'location', - 'public', - 'fqdn', - 'scheme', - 'memory', - 'memory_overallocate', - 'disk', - 'disk_overallocate', - 'daemonBase', - 'daemonSFTP', - 'daemonListen', + 'name', 'location_id', 'public', + 'fqdn', 'scheme', 'memory', + 'memory_overallocate', 'disk', + 'disk_overallocate', 'daemonBase', + 'daemonSFTP', 'daemonListen', ])); Alert::success('Successfully created new node that can be configured automatically on your remote machine by visiting the configuration tab. Before you can add any servers you need to first assign some IP addresses and ports.')->flash(); @@ -129,7 +122,7 @@ class NodesController extends Controller try { $node = new NodeRepository; $node->update($id, $request->only([ - 'name', 'location', 'public', + 'name', 'location_id', 'public', 'fqdn', 'scheme', 'memory', 'memory_overallocate', 'disk', 'disk_overallocate', 'upload_size',