api(client): allow setting empty server description
Closes https://github.com/pterodactyl/panel/issues/4752
This commit is contained in:
commit
5cd2697be3
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ class SettingsController extends ClientApiController
|
||||||
public function rename(RenameServerRequest $request, Server $server): JsonResponse
|
public function rename(RenameServerRequest $request, Server $server): JsonResponse
|
||||||
{
|
{
|
||||||
$name = $request->input('name');
|
$name = $request->input('name');
|
||||||
$description = $request->input('description') ?? $server->description;
|
$description = $request->has('description') ? (string) $request->input('description') : $server->description;
|
||||||
$this->repository->update($server->id, [
|
$this->repository->update($server->id, [
|
||||||
'name' => $name,
|
'name' => $name,
|
||||||
'description' => $description,
|
'description' => $description,
|
||||||
|
|
Loading…
Reference in a new issue