Bug 15636 - DataTables Warning: Requested unknown parameter from opac-detail.tt

Signed-off-by: Srdjan <srdjan@catalyst.net.nz>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This patch adds the same tests in the aoColumns DT definition than the
ones in the creation of the table. That's sound good.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Bouzid Fergani 2016-04-12 09:27:18 -04:00 committed by Kyle M Hall
parent 00960f1964
commit a12d3d1bfa

View file

@ -1428,8 +1428,10 @@
$(".holdingst").dataTable($.extend(true, {}, dataTablesDefaults, {
"aoColumns": [
[% IF ( item_level_itypes ) %]null,[% END %]
null,
[% IF ( OpacLocationBranchToDisplay == 'both' ) %]null,[% END %]
[% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' || singleBranchMode ) %]null,[% END %]
[% UNLESS ( singleBranchMode ) %]
[% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]null,[% END %]
[% END %]
[% IF ( itemdata_ccode ) %]null,[% END %]
null,
[% IF ( itemdata_enumchron ) %]null,[% END %]