fix link pandora_enterprise#8518

This commit is contained in:
Daniel Barbero Martin 2022-02-02 13:51:04 +01:00
parent 3e24773efa
commit f342a218ba
1 changed files with 7 additions and 0 deletions

View File

@ -1777,6 +1777,13 @@ $table->data[4][0] .= __('Not condition').' '.ui_print_help_tip(__('If you
}
if (!is_snapshot_data($row['datos'])) {
if ($tresholds === true || $graph_type === 'boolean') {
unset($graph_params['histogram']);
}
$graph_params_str = http_build_query($graph_params);
$link = 'winopeng_var(\''.$url.'?'.$graph_params_str.'\',\''.$win_handle.'\', 800, 480)';
$data[8] .= '<a href="javascript:'.$link.'">'.html_print_image('images/chart.png', true, ['border' => '0', 'alt' => '', 'class' => 'invert_filter']).'</a>';
}