From c1bf757623d3ff713ea49b9fa762573e73f48a4d Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Tue, 3 Jan 2017 17:44:48 -0500 Subject: [PATCH] Fix service option name being set wrongly after adding a new variable. closes #208 --- CHANGELOG.md | 1 + app/Http/Controllers/Admin/ServiceController.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 96c489518..1e0a5d32c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines. * Fixes bug that would allow creating multiple subusers with the same email address. * Fixes bug where Sponge servers were improperly tagged as a spigot server in the daemon causing issues when booting or modifying configuration files. * Use transpiled ES6 -> ES5 filemanager code in browsers. +* Fixes service option name displaying the name of a nwly added variable after the variable is added and until the page is refreshed. (see #208) ### Changed * Filemanager and EULA checking javascript is now written in pure ES6 code rather than as a blade-syntax template. This allows the use of babel to transpile into ES5 as a minified version. diff --git a/app/Http/Controllers/Admin/ServiceController.php b/app/Http/Controllers/Admin/ServiceController.php index 848b41962..e548ae07a 100644 --- a/app/Http/Controllers/Admin/ServiceController.php +++ b/app/Http/Controllers/Admin/ServiceController.php @@ -231,7 +231,7 @@ class ServiceController extends Controller ])); Alert::success('Successfully added new variable to this option.')->flash(); - return redirect()->route('admin.services.option', [$service, $option])->withInput(); + return redirect()->route('admin.services.option', [$service, $option]); } catch (DisplayValidationException $ex) { return redirect()->route('admin.services.option.variable.new', [$service, $option])->withErrors(json_decode($ex->getMessage()))->withInput(); } catch (DisplayException $ex) {