From 811125e543be4d6da8033ebfc589d31064e18347 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 Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi --- 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 9dd454c49f..ec86690195 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 2e57ecad02..1b0e317e6a 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.39.5