diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 5ae4a51d2f..4a9170c99f 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2012-03-14 Junichi Satoh + + * operation/incidents/incident.php: Replaced substr() with + ui_print_truncate_text(). + 2012-03-13 Miguel de Dios * godmode/reporting/reporting_builder.item_editor.php: added button near to diff --git a/pandora_console/operation/incidents/incident.php b/pandora_console/operation/incidents/incident.php index 18aad4ccb0..6e63bf48e6 100755 --- a/pandora_console/operation/incidents/incident.php +++ b/pandora_console/operation/incidents/incident.php @@ -322,7 +322,7 @@ if ($count < 1) { $data[0] .= '  '.html_print_image ("images/attachment.png", true, array ("style" => "align:middle;")); $data[1] = incidents_print_status_img ($row["estado"], true); - $data[2] = ''.substr(io_safe_output($row["titulo"]),0,45).''; + $data[2] = ''.ui_print_truncate_text(io_safe_output($row["titulo"]),45).''; $data[3] = incidents_print_priority_img ($row["prioridad"], true); $data[4] = ui_print_group_icon ($row["id_grupo"], true); $data[5] = ui_print_timestamp ($row["actualizacion"], true);