From 08c945d91d39873082c0f056aa22ee382c18c2bb Mon Sep 17 00:00:00 2001 From: Jose Gonzalez Date: Thu, 3 Jun 2021 15:37:11 +0200 Subject: [PATCH] Fixed missed buttons, improve code and added go back button when create-update --- .../godmode/reporting/graph_builder.main.php | 47 ++++++++++------ .../godmode/reporting/graph_builder.php | 22 ++++---- .../operation/reporting/graph_viewer.php | 55 ++++++++++++++----- 3 files changed, 82 insertions(+), 42 deletions(-) diff --git a/pandora_console/godmode/reporting/graph_builder.main.php b/pandora_console/godmode/reporting/graph_builder.main.php index 23cfc010c8..3b77ed932f 100644 --- a/pandora_console/godmode/reporting/graph_builder.main.php +++ b/pandora_console/godmode/reporting/graph_builder.main.php @@ -73,7 +73,7 @@ if (! check_acl($config['id_user'], 0, 'RW') exit; } -if ($edit_graph) { +if ($edit_graph === true) { $graphInTgraph = db_get_row_sql( 'SELECT * FROM tgraph WHERE id_graph = '.$id_graph ); @@ -113,18 +113,18 @@ if ($edit_graph) { // ----------------------- // CREATE/EDIT GRAPH FORM // ----------------------- -$url = 'index.php?sec=reporting&sec2=godmode/reporting/graph_builder'; -if ($edit_graph) { - $output = "
"; +$url = 'index.php?sec=reporting&sec2=godmode/reporting/graph_builder&edit_graph=1'; +if ($edit_graph === true) { + $output = ""; } else { - $output = ""; + $output = ""; } $output .= ""; $output .= ''; $output .= "'; $output .= "'; $output .= "
".__('Name').'