Bug 41604: Correctly restore alert when bKohaColumnsUseNames is off
If we define visibility_condition we must have implemented bKohaColumnsUseNames correctly. Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
parent
26d0124c6b
commit
1abfc554f0
|
|
@ -998,6 +998,14 @@ function _dt_get_expected_column_visibility(column) {
|
|||
|
||||
function _dt_force_visibility(table_settings, table_dt, state) {
|
||||
var columns_settings = table_settings.columns;
|
||||
|
||||
if (
|
||||
!table_settings.columns.filter(
|
||||
c => c.visibility_condition !== undefined
|
||||
).length
|
||||
)
|
||||
return state;
|
||||
|
||||
let use_names = $(table_dt.table().node()).data("bKohaColumnsUseNames");
|
||||
if (!use_names) {
|
||||
throw new Error(
|
||||
|
|
|
|||
Loading…
Reference in New Issue