Issue with the companies not showing in the server overview.

This commit is contained in:
2026-05-17 14:19:05 +02:00
parent 1e1e7a6be0
commit ab214e958e
3 changed files with 3 additions and 2 deletions

View File

@@ -25,6 +25,7 @@ class API_usergroups extends API
if ($this->getUsergroup(true)) {
$this->apiOutput(409, ['error' => 'Usergroup already exists.']);
}
$this->baseQuery = ''; # reset the base query set $_GET['builder]
$this->data['user_group_weight'] = $this->get_next_available_user_group_weight($this->data['user_group_weight']);
@@ -37,6 +38,7 @@ class API_usergroups extends API
$timestamp = time();
$stmt->bind_param("ssisi", $this->data['user_group_name'], $this->data['user_group_slugify'], $this->data['user_group_weight'], $this->data['user_group_type'], $timestamp);
$this->executeStatement($stmt);
$_GET['builder'] = [1 => ['where' => [0 => 'user_group_slugify', 1 => $this->data['user_group_slugify']]]];
$user_group = $this->getUsergroup();
$user_group_uuid = $user_group[0]['user_group_uuid'];