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>
This commit is contained in:
parent
a000d95a4d
commit
2f7bad7039
|
|
@ -253,6 +253,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';
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
[%- USE CGI -%]
|
||||
{
|
||||
"sEcho": [% CGI.param('sEcho') %],
|
||||
"sEcho": [% sEcho %],
|
||||
"iTotalRecords": [% total_rows %],
|
||||
"iTotalDisplayRecords": [% total_rows %],
|
||||
"aaData": [
|
||||
|
|
|
|||
Loading…
Reference in New Issue