Fixed problem in view of 'Tree view' with large data length. Reopen T#1748

This commit is contained in:
m-lopez-f 2015-02-04 13:10:08 +01:00
parent bf663a93c2
commit ded628da3e
1 changed files with 6 additions and 5 deletions

View File

@ -169,12 +169,12 @@ if ($get_module_detail) {
"data",
"modules_format_data",
"align" => "left",
"width" => 500),
"width" => "230px"),
"Time" => array(
"utimestamp",
"modules_format_time",
"align" => "left",
"width" => 500)
"width" => "50px")
);
if ($selection_mode == "fromnow") {
@ -237,13 +237,14 @@ if ($get_module_detail) {
// Detect string data with \n and convert to <br>'s
$datos = preg_replace ('/\n/i','<br>',$row[$attr[0]]);
$datos = preg_replace ('/\s/i','&nbsp;',$datos);
$datos = $row[$attr[0]];
//$datos = preg_replace ('/\n/i','<br>',$row[$attr[0]]);
//$datos = preg_replace ('/\s/i','&nbsp;',$datos);
// Because this *SHIT* of print_table monster, I cannot format properly this cells
// so, eat this, motherfucker :))
$datos = "<span style='font-family: mono,monospace;'>" . $datos . "</span>";
$datos = io_safe_input($datos);
// I dont why, but using index (value) method, data is automatically converted to html entities ¿?
$data[] = $datos;