Browse Source

Bug 20806: Do not rely on column position

It is not the first time we have this splice call, it seems safer to
rely on the column's name instead of the column's position

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
18.11.x
Jonathan Druart 6 years ago
committed by Nick Clemens
parent
commit
2a369663fd
  1. 2
      koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt

2
koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt

@ -125,7 +125,7 @@
var columns_settings = [% ColumnsSettings.GetColumns('members', 'holdshistory', 'holdshistory-table', 'json') %];
[% UNLESS show_itemtype_column %]
//Remove item type column settings
columns_settings.splice(8,1);
columns_settings = columns_settings.filter(function(c){return c['columnname'] != 'itemtype';});
[% END %]
var table = KohaTable("table_holdshistory", {
"sPaginationType": "four_button",

Loading…
Cancel
Save