Issue with the companies not showing in the server overview.
This commit is contained in:
@@ -688,7 +688,6 @@ class API
|
|||||||
|
|
||||||
protected function buildDynamicQuery(string $tableName): array
|
protected function buildDynamicQuery(string $tableName): array
|
||||||
{
|
{
|
||||||
$this->baseQuery = '';
|
|
||||||
if (!$this->baseQuery) {
|
if (!$this->baseQuery) {
|
||||||
$this->baseQuery = "SELECT * FROM " . $tableName;
|
$this->baseQuery = "SELECT * FROM " . $tableName;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ class API_usergroups extends API
|
|||||||
if ($this->getUsergroup(true)) {
|
if ($this->getUsergroup(true)) {
|
||||||
$this->apiOutput(409, ['error' => 'Usergroup already exists.']);
|
$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']);
|
$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();
|
$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);
|
$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);
|
$this->executeStatement($stmt);
|
||||||
|
$_GET['builder'] = [1 => ['where' => [0 => 'user_group_slugify', 1 => $this->data['user_group_slugify']]]];
|
||||||
$user_group = $this->getUsergroup();
|
$user_group = $this->getUsergroup();
|
||||||
$user_group_uuid = $user_group[0]['user_group_uuid'];
|
$user_group_uuid = $user_group[0]['user_group_uuid'];
|
||||||
|
|
||||||
|
|||||||
@@ -424,7 +424,7 @@ class serverOverviewBuilder
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
data-sort="<?php echo htmlspecialchars($sortValue); ?>" data-filter="<?php echo htmlspecialchars($filterValue); ?>">
|
data-sort="<?php echo htmlspecialchars($sortValue); ?>" data-filter="<?php echo htmlspecialchars($filterValue); ?>">
|
||||||
<?php
|
<?php
|
||||||
if (!empty($sortValue)) {
|
if (!empty($sortValue)) {
|
||||||
if (count($sizes) === 1) {
|
if (count($sizes) === 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user