Merge branch '523-deteccion-de-cambios-en-inventario-modulo-software-y-otros-con-varias-lineas-open-2' into 'develop'
Improve event title format and alias rather name - #523 See merge request !577
This commit is contained in:
commit
9c0efdeeba
|
@ -2336,7 +2336,7 @@ function events_page_general ($event) {
|
||||||
|
|
||||||
$data = array();
|
$data = array();
|
||||||
$data[0] = __('Event name');
|
$data[0] = __('Event name');
|
||||||
$event["evento"] = str_replace ( 'event_line_jump' , '<br>' , $event["evento"]);
|
$event["evento"] = str_replace ( '
' , '<br>' , $event["evento"]);
|
||||||
$data[1] = io_safe_output($event["evento"]);
|
$data[1] = io_safe_output($event["evento"]);
|
||||||
$table_general->data[] = $data;
|
$table_general->data[] = $data;
|
||||||
|
|
||||||
|
|
|
@ -52,6 +52,7 @@ our @EXPORT = qw(
|
||||||
get_agent_addr_id
|
get_agent_addr_id
|
||||||
get_agent_id
|
get_agent_id
|
||||||
get_agent_address
|
get_agent_address
|
||||||
|
get_agent_alias
|
||||||
get_agent_group
|
get_agent_group
|
||||||
get_agent_name
|
get_agent_name
|
||||||
get_agent_module_id
|
get_agent_module_id
|
||||||
|
@ -287,6 +288,18 @@ sub get_agent_name ($$) {
|
||||||
WHERE id_agente = ?", $agent_id);
|
WHERE id_agente = ?", $agent_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
########################################################################
|
||||||
|
## SUB get_agent_alias (agent_id)
|
||||||
|
## Return agent alias, given "agent_id"
|
||||||
|
########################################################################
|
||||||
|
sub get_agent_alias ($$) {
|
||||||
|
my ($dbh, $agent_id) = @_;
|
||||||
|
|
||||||
|
return get_db_value ($dbh, "SELECT alias
|
||||||
|
FROM tagente
|
||||||
|
WHERE id_agente = ?", $agent_id);
|
||||||
|
}
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
## SUB agents_get_modules (agent_id, fields, filters)
|
## SUB agents_get_modules (agent_id, fields, filters)
|
||||||
## Return the list of modules, given "agent_id"
|
## Return the list of modules, given "agent_id"
|
||||||
|
|
Loading…
Reference in New Issue