mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-26 23:35:02 +02:00
Merge branch '1657-Agentes-en-crítico-salen-como-desconocido-en-GIS-dev' into 'develop'
Fixed Unkwon Icon in GIS See merge request artica/pandorafms!1147
This commit is contained in:
commit
5b5ed2c45b
@ -573,14 +573,17 @@ function gis_get_agent_icon_map($idAgent, $state = false, $status = null) {
|
|||||||
switch ($status) {
|
switch ($status) {
|
||||||
case 1:
|
case 1:
|
||||||
case 4:
|
case 4:
|
||||||
|
case 100:
|
||||||
//Critical (BAD or ALERT)
|
//Critical (BAD or ALERT)
|
||||||
$state = ".bad";
|
$state = ".bad";
|
||||||
break;
|
break;
|
||||||
case 0:
|
case 0:
|
||||||
|
case 300:
|
||||||
//Normal (OK)
|
//Normal (OK)
|
||||||
$state = ".ok";
|
$state = ".ok";
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
|
case 200:
|
||||||
//Warning
|
//Warning
|
||||||
$state = ".warning";
|
$state = ".warning";
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user