X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=reports%2Fguided_reports.pl;h=e86c72ae2af0dbd410cf4527acbabbf50923423b;hb=b216babdf8ca0fad63014c39a743a6839d568a25;hp=e9a31bf3ea332da7f5f79229adda4ed9ead4d3ee;hpb=c8cbf6b5f219c2a3726490816a71c5cdc60c1007;p=koha.git diff --git a/reports/guided_reports.pl b/reports/guided_reports.pl index e9a31bf3ea..e86c72ae2a 100755 --- a/reports/guided_reports.pl +++ b/reports/guided_reports.pl @@ -96,7 +96,8 @@ elsif ( $phase eq 'Edit SQL'){ $template->param( 'sql' => $sql, 'reportname' => $reportname, - 'id' => $id, + 'notes' => $notes, + 'id' => $id, 'editsql' => 1, ); } @@ -105,6 +106,7 @@ elsif ( $phase eq 'Update SQL'){ my $id = $input->param('id'); my $sql = $input->param('sql'); my $reportname = $input->param('reportname'); + my $notes = $input->param('notes'); my @errors; if ($sql =~ /;?\W?(UPDATE|DELETE|DROP|INSERT|SHOW|CREATE)\W/i) { push @errors, {sqlerr => $1}; @@ -119,7 +121,7 @@ elsif ( $phase eq 'Update SQL'){ ); } else { - update_sql( $id, $sql, $reportname ); + update_sql( $id, $sql, $reportname, $notes ); $template->param( 'save_successful' => 1, );