Bug 18633: Remove remaining use of CGI.param in template

Signed-off-by: Marc Véron <veron@veron.ch>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 2f7bad7039)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Julian Maurice 2017-06-12 09:18:30 +02:00 committed by Fridolin Somers
parent 1d97c317a4
commit c7c05de48f
2 changed files with 2 additions and 2 deletions

View File

@ -252,6 +252,7 @@ if (scalar keys %params > 0) {
print "$line\n" unless $line =~ m|^\s*$|;
}
} elsif ($format eq 'json') {
$template->param(sEcho => scalar $cgi->param('sEcho'));
output_with_http_headers $cgi, $cookie, $template->output, 'json';
}

View File

@ -1,6 +1,5 @@
[%- USE CGI -%]
{
"sEcho": [% CGI.param('sEcho') %],
"sEcho": [% sEcho %],
"iTotalRecords": [% total_rows %],
"iTotalDisplayRecords": [% total_rows %],
"aaData": [