Bug 20966: (follow-up) Add template variable filter; Fix table export
This patch makes to corrections: 1. The "$raw" filter has been added to the column configuration 2. The columns configuration now specifies which columns are exported in Copy, Excel, etc. operations. To test, apply the patch and test the various table export buttons on a both a closed and open basket. Confirm that the 'Modify' and 'Cancel' columns are not exported. Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> https://bugs.koha-community.org/show_bug.cgi?id=20996 Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
2874dfb1f1
commit
f1e5e3670f
|
|
@ -75,6 +75,8 @@ modules:
|
|||
-
|
||||
columnname: ecost_tax_included
|
||||
is_hidden: 1
|
||||
-
|
||||
columnname: replacement_price
|
||||
-
|
||||
columnname: quantity
|
||||
-
|
||||
|
|
|
|||
|
|
@ -887,10 +887,7 @@
|
|||
[% END %]
|
||||
[% END %]
|
||||
<script>
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
var columns_settings = [% ColumnsSettings.GetColumns( 'acqui', 'basket', 'orders', 'json' ) %];
|
||||
>>>>>>> Bug 20966: Add column configuration to table of orders in a basket
|
||||
var columns_settings = [% ColumnsSettings.GetColumns( 'acqui', 'basket', 'orders', 'json' ) | $raw %];
|
||||
$(document).ready(function() {
|
||||
KohaTable("orders", {
|
||||
[% IF ( active ) %]
|
||||
|
|
@ -900,7 +897,8 @@
|
|||
],
|
||||
[% END %]
|
||||
"sPaginationType": "four_button",
|
||||
"autoWidth": false
|
||||
"autoWidth": false,
|
||||
"exportColumns": [0,1,2,3,4,5,6,7,8,9,10,11,12,13]
|
||||
}, columns_settings);
|
||||
|
||||
var cancelledorderst = $("#cancelledorderst").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
|
|
|
|||
Loading…
Reference in New Issue