refactor: Improve saving of custom internal name in Advanced.php
This commit is contained in:
parent
4b744bc88a
commit
c7a79514cc
1 changed files with 6 additions and 0 deletions
|
|
@ -96,6 +96,12 @@ public function saveCustomName()
|
|||
} else {
|
||||
$this->application->settings->custom_internal_name = null;
|
||||
}
|
||||
if (is_null($this->application->settings->custom_internal_name)) {
|
||||
$this->application->settings->save();
|
||||
$this->dispatch('success', 'Custom name saved.');
|
||||
|
||||
return;
|
||||
}
|
||||
$customInternalName = $this->application->settings->custom_internal_name;
|
||||
$server = $this->application->destination->server;
|
||||
$allApplications = $server->applications();
|
||||
|
|
|
|||
Loading…
Reference in a new issue