Bug 33705: (bug 33066 follow-up) Fix 'configure' button for kohaTable
The 'configure' button is displayed for any tables, even those that cannot be configured. This is a regression caused by commit765fd1ced3Bug 33066: Introduce a KohaTable Vue component It's adding a default value for table_settings, but then later we are testing if table_settings is true: 699 let table_settings = params.table_settings || {}; ... 798 if ( table_settings && CAN_user_parameters_manage_column_config ) { This patch is reverting the default value, so the test will be corrected. Test plan: 1. Go to Tools > Quote editor 2. Click "Configure" => Without this patch you are brought to the column settings page, but the quote editor table is not there => With this patch the button is not present 3. Go to the cities page (admin/cities.pl) 4. Click "Configure" => You are brought to the column settings page Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> (cherry picked from commit8eeaa1f714) Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
This commit is contained in:
parent
8ca03273aa
commit
e19ddc58a3
|
|
@ -696,7 +696,7 @@ function _dt_default_ajax (params){
|
|||
function _dt_buttons(params){
|
||||
let included_ids = params.included_ids || [];
|
||||
let settings = params.settings || {};
|
||||
let table_settings = params.table_settings || {};
|
||||
let table_settings = params.table_settings;
|
||||
|
||||
var exportColumns = ":visible:not(.noExport)";
|
||||
if( settings.hasOwnProperty("exportColumns") ){
|
||||
|
|
|
|||
Loading…
Reference in New Issue