From 93772af53cbf03db1ca0af0cc3bf229455fee92f Mon Sep 17 00:00:00 2001 From: remi Date: Thu, 21 Jan 2016 12:32:00 -0500 Subject: [PATCH] Bug 15636 - DataTables Warning: Requested unknown parameter from opac-detail.tt Fixes the jQuery that generates the holdingst DataTable by adding the missing UNLESS and IF tests to it. The IF and UNLESS in opac-detail.tt need to be the same in the header declaration of the DataTable and the jquery that builds it or else there can be an error depening on the system preferences. --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt index 3b5c404..20f760f 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -1435,7 +1435,9 @@ $(".holdingst").dataTable($.extend(true, {}, dataTablesDefaults, { "aoColumns": [ [% IF ( item_level_itypes ) %]null,[% END %] - null, + [% UNLESS ( singleBranchModel ) %] + [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]null,[% END %] + [% END %] [% IF ( OpacLocationBranchToDisplay == 'both' ) %]null,[% END %] [% IF ( itemdata_ccode ) %]null,[% END %] null, -- 1.9.1