Merge branch 'ent-6926-Vista-de-servidores-no-muestra-masters' into 'develop'

Ent 6926 vista de servidores no muestra masters

See merge request artica/pandorafms!3809
This commit is contained in:
Daniel Rodriguez 2021-03-04 10:45:05 +00:00
commit 8281d98f83
1 changed files with 8 additions and 1 deletions

View File

@ -79,6 +79,13 @@ if (check_acl($config['id_user'], 0, 'PM')) {
$table->data = [];
$names_servers = [];
$master = 1;
// The server with the highest number in master, will be the real master.
foreach ($servers as $server) {
if ($server['master'] > $master) {
$master = $server['master'];
}
}
foreach ($servers as $server) {
$data = [];
@ -109,7 +116,7 @@ foreach ($servers as $server) {
// Type
$data[2] = '<span style="white-space:nowrap;">'.$server['img'];
if ($server['master'] == 1) {
if ($server['master'] == $master) {
$data[2] .= ui_print_help_tip(__('This is a master server'), true);
}