Updating guided_reports.pl
authorChris Cormack <crc@liblime.com>
Mon, 29 Oct 2007 18:22:57 +0000 (13:22 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Mon, 29 Oct 2007 21:12:46 +0000 (16:12 -0500)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
reports/guided_reports.pl

index 861c67f..dc19c0a 100755 (executable)
@@ -304,7 +304,7 @@ elsif ( $phase eq 'Save' ) {
     my $sql  = $input->param('sql');
     my $type = $input->param('type');
     $template->param(
-        'save' => 1,
+        'save_successful' => 1,
         'sql'  => $sql,
         'type' => $type
     );
@@ -317,6 +317,9 @@ elsif ( $phase eq 'Save Report' ) {
     my $type = $input->param('type');
        my $notes = $input->param('notes');
     save_report( $sql, $name, $type, $notes );
+       $template->param(
+               'save_successful' => 1,
+       );
 }
 
 elsif ( $phase eq 'Execute' ) {