Skip to content

Commit c1bf757

Browse files
committed
Fix service option name being set wrongly after adding a new variable. closes pterodactyl#208
1 parent 2e33b9c commit c1bf757

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
1616
* Fixes bug that would allow creating multiple subusers with the same email address.
1717
* Fixes bug where Sponge servers were improperly tagged as a spigot server in the daemon causing issues when booting or modifying configuration files.
1818
* Use transpiled ES6 -> ES5 filemanager code in browsers.
19+
* 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)
1920

2021
### Changed
2122
* 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.

app/Http/Controllers/Admin/ServiceController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ public function postNewVariable(Request $request, $service, $option)
231231
]));
232232
Alert::success('Successfully added new variable to this option.')->flash();
233233

234-
return redirect()->route('admin.services.option', [$service, $option])->withInput();
234+
return redirect()->route('admin.services.option', [$service, $option]);
235235
} catch (DisplayValidationException $ex) {
236236
return redirect()->route('admin.services.option.variable.new', [$service, $option])->withErrors(json_decode($ex->getMessage()))->withInput();
237237
} catch (DisplayException $ex) {

0 commit comments

Comments
 (0)