Fix issue with WUX Trans Stats
This commit is contained in:
parent
d3e815ce43
commit
3263ef8b9a
|
@ -4986,11 +4986,7 @@ function ui_print_agent_autocomplete_input($parameters)
|
||||||
$metaconsole_enabled = $parameters['metaconsole_enabled'];
|
$metaconsole_enabled = $parameters['metaconsole_enabled'];
|
||||||
} else {
|
} else {
|
||||||
// If metaconsole_enabled param is not setted then pick source configuration.
|
// If metaconsole_enabled param is not setted then pick source configuration.
|
||||||
if (defined('METACONSOLE')) {
|
$metaconsole_enabled = is_metaconsole();
|
||||||
$metaconsole_enabled = true;
|
|
||||||
} else {
|
|
||||||
$metaconsole_enabled = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$get_only_string_modules = false;
|
$get_only_string_modules = false;
|
||||||
|
@ -5403,14 +5399,11 @@ function ui_print_agent_autocomplete_input($parameters)
|
||||||
server_name = ui.item.ip;
|
server_name = ui.item.ip;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (('.((int) $use_input_id_server).')
|
if (('.((int) $use_input_id_server).')
|
||||||
|| ('.((int) $print_input_id_server).')) {
|
|| ('.((int) $print_input_id_server).')) {
|
||||||
server_id = ui.item.id_server;
|
server_id = ui.item.id_server;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//Put the name
|
//Put the name
|
||||||
$(this).val(agent_name);
|
$(this).val(agent_name);
|
||||||
|
|
||||||
|
|
|
@ -169,6 +169,11 @@ function pandoraFlotPieCustom(
|
||||||
var label_conf;
|
var label_conf;
|
||||||
var show_legend = true;
|
var show_legend = true;
|
||||||
|
|
||||||
|
// Set default value if not come like a number.
|
||||||
|
if (isNaN(width) === true) {
|
||||||
|
width = 451;
|
||||||
|
}
|
||||||
|
|
||||||
if (width <= 450) {
|
if (width <= 450) {
|
||||||
show_legend = false;
|
show_legend = false;
|
||||||
label_conf = {
|
label_conf = {
|
||||||
|
@ -222,6 +227,9 @@ function pandoraFlotPieCustom(
|
||||||
conf_pie.series.pie.label = { show: false };
|
conf_pie.series.pie.label = { show: false };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Avoid issues with 0 width values.
|
||||||
|
$("#" + graph_id).width(width);
|
||||||
|
|
||||||
var plot = $.plot($("#" + graph_id), data, conf_pie);
|
var plot = $.plot($("#" + graph_id), data, conf_pie);
|
||||||
if (no_data == data.length) {
|
if (no_data == data.length) {
|
||||||
$("#" + graph_id + " .overlay").remove();
|
$("#" + graph_id + " .overlay").remove();
|
||||||
|
|
|
@ -809,6 +809,7 @@ function dashboardLoadWuxStats(settings) {
|
||||||
page: settings.page,
|
page: settings.page,
|
||||||
wux_transaction_stats: 1,
|
wux_transaction_stats: 1,
|
||||||
id_agent: settings.id_agent,
|
id_agent: settings.id_agent,
|
||||||
|
server_id: settings.server_id,
|
||||||
transaction: settings.transaction,
|
transaction: settings.transaction,
|
||||||
view_all_stats: settings.view_all_stats,
|
view_all_stats: settings.view_all_stats,
|
||||||
auth_class: settings.auth_class,
|
auth_class: settings.auth_class,
|
||||||
|
|
Loading…
Reference in New Issue