Fixed function to get string type

This commit is contained in:
Arturo Gonzalez 2017-10-23 14:58:02 +02:00
parent b5b976e41b
commit 9b01919342
2 changed files with 3 additions and 3 deletions

View File

@ -1785,7 +1785,7 @@ function setBarsGraph(id_data, values) {
parameter.push ({name: "page", value: "include/ajax/visual_console_builder.ajax"});
parameter.push ({name: "action", value: "get_module_type_string"});
parameter.push ({name: "id_agent", value: values['id_agent']});
parameter.push ({name: "id_agent_module", value: values['module']});
parameter.push ({name: "module", value: values['module']});
parameter.push ({name: "id_visual_console", value: id_visual_console});
jQuery.ajax({
url: get_url_ajax(),

View File

@ -144,7 +144,7 @@ switch ($action) {
case 'get_module_type_string':
$data = array ();
$layoutData = db_get_row_filter('tlayout_data', array('id' => $id_element));
if ($layoutData['id_metaconsole'] != 0) {
@ -158,7 +158,7 @@ switch ($action) {
$is_string = db_get_value_filter ('id_tipo_modulo', 'tagente_modulo',
array ('id_agente' => $id_agent,
'id_agente_modulo' => $id_module));
html_debug($is_string, true);
if ($layoutData['id_metaconsole'] != 0) {
metaconsole_restore_db();
}