Fixed problems with percentil in customs graphs. Gitlab:

This commit is contained in:
m-lopez-f 2017-02-21 16:52:56 +01:00
parent a36e74990d
commit 5bb39c4618
2 changed files with 3 additions and 3 deletions
pandora_console
godmode/reporting
operation/reporting

View File

@ -174,7 +174,7 @@ echo "</div>";
echo "</div></td>";
echo "<tr><td class='datos2'><b>".__('Type of graph')."</b></td>";
echo "<tr><td class='datos2'><b>".__('Percentil')."</b></td>";
echo "<td class='datos2'>" . html_print_checkbox ("percentil", 1, $percentil, true) . "</td></tr>";
echo "</table>";

View File

@ -94,9 +94,9 @@ if ($view_graph) {
$events = $graph["events"];
$description = $graph["description"];
$stacked = (int) get_parameter ('stacked', -1);
$percentil = (int) get_parameter ('percentil', 0);
$percentil = ($graph['percentil']) ? 1 : null;
$check = get_parameter('threshold',false);
if($check == CUSTOM_GRAPH_BULLET_CHART_THRESHOLD){
$check = true;
$stacked = CUSTOM_GRAPH_BULLET_CHART_THRESHOLD;