From a4f21547e883df6b30600221acbd2ffb2aa2c9ad Mon Sep 17 00:00:00 2001 From: Jesse Weaver Date: Mon, 14 Sep 2015 15:57:55 -0600 Subject: [PATCH] Bug 14510: (QA followup) fix columns settings in other pages --- koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc index 9dd454c..ec86690 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc @@ -10,7 +10,7 @@ function KohaTable(selector, dt_parameters, columns_settings) { var excluded_ids = []; $(columns_settings).each( function() { var named_id = $( 'thead th[data-colname="' + this.columnname + '"]', selector ).index( 'th' ); - var used_id = this.columnname ? named_id : id; + var used_id = dt_parameters.bKohaColumnsUseNames ? named_id : id; if ( used_id == -1 ) return; if ( this['is_hidden'] == "1" ) { diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt index 2e57eca..1b0e317 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt @@ -58,7 +58,8 @@ $(document).ready(function(){ ], 'bPaginate': false, 'bInfo': false, - "bAutoWidth": false + "bAutoWidth": false, + "bKohaColumnsUseNames": true }, columns_settings); }); -- 2.5.0