Dashboard - Edit: Display domain after domain-specific group names.
This commit is contained in:
parent
fbeb65428e
commit
fce7a9401a
|
|
@ -468,7 +468,7 @@
|
||||||
$document['title'] = $text['title-dashboard'];
|
$document['title'] = $text['title-dashboard'];
|
||||||
require_once "resources/header.php";
|
require_once "resources/header.php";
|
||||||
|
|
||||||
//get the child groups
|
//get the dashboard groups
|
||||||
$sql = "SELECT * FROM v_dashboard_groups as x, v_groups as g ";
|
$sql = "SELECT * FROM v_dashboard_groups as x, v_groups as g ";
|
||||||
$sql .= "WHERE x.dashboard_uuid = :dashboard_uuid ";
|
$sql .= "WHERE x.dashboard_uuid = :dashboard_uuid ";
|
||||||
$sql .= "AND x.group_uuid = g.group_uuid ";
|
$sql .= "AND x.group_uuid = g.group_uuid ";
|
||||||
|
|
@ -477,9 +477,9 @@
|
||||||
unset ($sql, $parameters);
|
unset ($sql, $parameters);
|
||||||
|
|
||||||
//get the groups
|
//get the groups
|
||||||
$sql = "SELECT group_uuid, group_name FROM v_groups ";
|
$sql = "SELECT group_uuid, domain_uuid, group_name FROM v_groups ";
|
||||||
$sql .= "WHERE (domain_uuid = :domain_uuid or domain_uuid is null)";
|
$sql .= "WHERE (domain_uuid = :domain_uuid or domain_uuid is null)";
|
||||||
$sql .= "ORDER by group_name asc ";
|
$sql .= "ORDER BY domain_uuid desc, group_name asc ";
|
||||||
$parameters['domain_uuid'] = $_SESSION['domain_uuid'];
|
$parameters['domain_uuid'] = $_SESSION['domain_uuid'];
|
||||||
$groups = $database->execute($sql, $parameters, 'all');
|
$groups = $database->execute($sql, $parameters, 'all');
|
||||||
unset ($sql, $parameters);
|
unset ($sql, $parameters);
|
||||||
|
|
@ -779,7 +779,7 @@
|
||||||
if (!empty($field['group_name'])) {
|
if (!empty($field['group_name'])) {
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo " <td class='vtable' style='white-space: nowrap; padding-right: 30px;' nowrap='nowrap'>\n";
|
echo " <td class='vtable' style='white-space: nowrap; padding-right: 30px;' nowrap='nowrap'>\n";
|
||||||
echo $field['group_name'].((!empty($field['group_domain_uuid'])) ? "@".$_SESSION['domains'][$field['group_domain_uuid']]['domain_name'] : null);
|
echo $field['group_name'].((!empty($field['domain_uuid'])) ? "@".$_SESSION['domains'][$field['domain_uuid']]['domain_name'] : null);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
if (permission_exists('dashboard_group_delete') || if_group("superadmin")) {
|
if (permission_exists('dashboard_group_delete') || if_group("superadmin")) {
|
||||||
echo " <td class='list_control_icons' style='width: 25px;'>\n";
|
echo " <td class='list_control_icons' style='width: 25px;'>\n";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue