Fixed problems with format of text in visual console. Ticket: 4013
(cherry picked from commit 92347901b3
)
This commit is contained in:
parent
121c3a1af8
commit
c4d2cc8ac4
|
@ -1147,6 +1147,10 @@ function visual_map_get_simple_value($type, $id_module, $period = SECONDS_1DAY)
|
|||
$value .= " " . $unit_text;
|
||||
}
|
||||
}
|
||||
|
||||
$value = preg_replace ('/\n/i','<br>',$value);
|
||||
$value = preg_replace ('/\s/i',' ',$value);
|
||||
|
||||
return $value;
|
||||
break;
|
||||
case SIMPLE_VALUE_MAX:
|
||||
|
|
Loading…
Reference in New Issue