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:
vgilc 2017-12-05 16:55:06 +01:00
commit 5b5ed2c45b
1 changed files with 3 additions and 0 deletions

View File

@ -573,14 +573,17 @@ function gis_get_agent_icon_map($idAgent, $state = false, $status = null) {
switch ($status) {
case 1:
case 4:
case 100:
//Critical (BAD or ALERT)
$state = ".bad";
break;
case 0:
case 300:
//Normal (OK)
$state = ".ok";
break;
case 2:
case 200:
//Warning
$state = ".warning";
break;