From 525c054cbf85daf5b2061c9a7b60e8cc893d2533 Mon Sep 17 00:00:00 2001 From: Lorenzo Perone Date: Thu, 11 Jun 2026 15:19:27 +0000 Subject: [PATCH 1/3] Member modal: only run the write-back when the member dialog was open The hide.bs.modal handler is bound to the shared #page-modal, so it ran for every dialog (export, delete, values-show, ...). For those dialogs attribute_values('destination',...) returns an empty list, which makes modal_update() execute its 'all members removed' path - blanking the first member input and removing the remaining member rows from the form. Bail out unless the closing modal actually contains the member dialog. Fixes #465 --- resources/views/components/attribute/widget/options.blade.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/views/components/attribute/widget/options.blade.php b/resources/views/components/attribute/widget/options.blade.php index 5729aecd..dffba671 100644 --- a/resources/views/components/attribute/widget/options.blade.php +++ b/resources/views/components/attribute/widget/options.blade.php @@ -44,6 +44,10 @@ }); $('#page-modal').on('hide.bs.modal',function() { + // Only handle the close if the member-manage modal was the one open + if (! $(this).find('select#destination').length) + return; + var updated = modal_update(modal_attr,attribute_values('destination','select','option')); if (updated.length) From fb717b9794814ddb60950ac1a708732c6f3e4e9e Mon Sep 17 00:00:00 2001 From: Lorenzo Perone Date: Thu, 11 Jun 2026 15:19:27 +0000 Subject: [PATCH 2/3] Member modal: make the filter work in WebKit browsers The filter hid