diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc index 7688cdad66..3775325b12 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc @@ -286,8 +286,8 @@ [% END %] $(document).on("shown.bs.modal", function(){ - $('select[name="sort1_filter"]').select2({allowClear:true}); - $('select[name="sort2_filter"]').select2({allowClear:true}); + $('select[name="sort1_filter"]').select2({allowClear:true,dropdownParent:$('#patron_search_modal')}); + $('select[name="sort2_filter"]').select2({allowClear:true,dropdownParent:$('#patron_search_modal')}); }).on("hidden.bs.modal", function(){ ["sort1_filter", "sort2_filter"].forEach(function(item){ if( $('select[name=' + item + ']').data("select2") ){