From 8882e6b5745cddd0c0d3a964e6feb978806355d5 Mon Sep 17 00:00:00 2001 From: Arthur Suzuki Date: Mon, 21 Nov 2022 10:57:01 +0100 Subject: [PATCH] Revert Bug 31364 --- koha-tmpl/intranet-tmpl/prog/js/pages/preferences.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/pages/preferences.js b/koha-tmpl/intranet-tmpl/prog/js/pages/preferences.js index 1cc4660a4e..e7d8dad01a 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/pages/preferences.js +++ b/koha-tmpl/intranet-tmpl/prog/js/pages/preferences.js @@ -13,7 +13,7 @@ KOHA.Preferences = { // If a multiple select has all its entries unselected var unserialized = new Array(); $(modified_prefs).each(function(){ - if ( $(this).attr('multiple') && $(this).val().length == 0 ) { + if ( $(this).attr('multiple') && $(this).val() == null ) { unserialized.push($(this)); } }); -- 2.39.2