refactor: Improve saving of custom internal name in Advanced.php
This commit is contained in:
@@ -96,6 +96,12 @@ class Advanced extends Component
|
|||||||
} else {
|
} else {
|
||||||
$this->application->settings->custom_internal_name = null;
|
$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;
|
$customInternalName = $this->application->settings->custom_internal_name;
|
||||||
$server = $this->application->destination->server;
|
$server = $this->application->destination->server;
|
||||||
$allApplications = $server->applications();
|
$allApplications = $server->applications();
|
||||||
|
|||||||
Reference in New Issue
Block a user