Fix filter for select2 fields on "People" page (#5799)

* Fix filter for select2 fields on "People" page

* Update CHANGELOG.md

Co-authored-by: Lucas Bartholemy <luke-@users.noreply.github.com>
This commit is contained in:
Yuriy Bakhtin 2022-07-06 12:15:31 +03:00 committed by GitHub
parent 5868e48c02
commit e924bb0302
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -4,6 +4,7 @@ HumHub Changelog
1.11.4 (Unreleased)
----------------------
- Fix #5776: Hide beta modules on disabled filter
- Fix #5799: Incorrect selection when multiple custom filters are in place
- Fix #5780: Don't hide icon "remove item" on picker
1.11.3 (June 27, 2022)

View File

@ -3,7 +3,11 @@ humhub.module('cards', function(module, require, $) {
const loader = require('ui.loader');
const applyFilters = function(evt) {
$(evt.$trigger).closest('form').submit();
const form = $(evt.$trigger).closest('form');
form.find('select[data-select2-id] option[data-id]').each(function() {
$(this).val($(this).data('id'));
});
form.submit();
}
const selectTag = function (evt) {