2011-03-24 Javier Lanz <javier.lanz@artica.es>

* include/ajax/reporting.ajax.php: Added truncating for the agent and
	module name into report SLA list.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4129 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
javilanz 2011-03-24 10:48:59 +00:00
parent 986935e9d6
commit a06a31e79c
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2011-03-24 Javier Lanz <javier.lanz@artica.es>
* include/ajax/reporting.ajax.php: Added truncating for the agent and
module name into report SLA list.
2011-03-23 Raul Mateos <raulofpandora@gmail.com>
* operation/search_agents.php: Updated forgotten file

View File

@ -30,6 +30,7 @@ $delete_sla_item = get_parameter('delete_sla_item', 0);
$get_custom_sql = get_parameter('get_custom_sql', 0);
$add_sla = get_parameter('add_sla', 0);
$id = get_parameter('id', 0);
$truncate_text = get_parameter ('truncate_text', 0);
if ($delete_sla_item) {
$result = process_sql_delete('treport_content_sla_combined', array('id' => (int)$id));
@ -89,4 +90,10 @@ if ($get_custom_sql) {
echo json_encode($data);
return;
}
if ($truncate_text) {
$text = get_parameter ('text', '');
return printTruncateText ($text, 20, true, false);
}
?>