From ac40f9835ba67716e0c8407dd90b6a9ec2c4fb3e Mon Sep 17 00:00:00 2001 From: Gabriel Bolbotina Date: Thu, 14 May 2026 12:14:09 +0300 Subject: [PATCH 1/2] Fixed the UI bug not showing already selected entries for the multi select filter --- .../components/MMFilterDropdownValueRelationInput.qml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/qml/filters/components/MMFilterDropdownValueRelationInput.qml b/app/qml/filters/components/MMFilterDropdownValueRelationInput.qml index a192c80e1..56401e5f0 100644 --- a/app/qml/filters/components/MMFilterDropdownValueRelationInput.qml +++ b/app/qml/filters/components/MMFilterDropdownValueRelationInput.qml @@ -109,8 +109,12 @@ Column { Component.onCompleted: { if ( root.currentValue ) { - // preselect choices if any are set - selected = root.currentValue + // preselect choices if any are set; coerce numeric strings to numbers + // so they match the model's numeric keys (fixes AllowMulti filter returning 0 results) + selected = root.currentValue.map( v => { + const n = Number( v ) + return isFinite( n ) && String( n ) === v ? n : v + } ) } open() From a32cbbb6d55c071ad4e6603c636d653b088f4a35 Mon Sep 17 00:00:00 2001 From: Gabriel Bolbotina Date: Thu, 14 May 2026 12:25:15 +0300 Subject: [PATCH 2/2] Small comment modification --- .../filters/components/MMFilterDropdownValueRelationInput.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/qml/filters/components/MMFilterDropdownValueRelationInput.qml b/app/qml/filters/components/MMFilterDropdownValueRelationInput.qml index 56401e5f0..6c7e27a76 100644 --- a/app/qml/filters/components/MMFilterDropdownValueRelationInput.qml +++ b/app/qml/filters/components/MMFilterDropdownValueRelationInput.qml @@ -109,7 +109,7 @@ Column { Component.onCompleted: { if ( root.currentValue ) { - // preselect choices if any are set; coerce numeric strings to numbers + // preselect choices if any are set; convert numeric strings to numbers // so they match the model's numeric keys (fixes AllowMulti filter returning 0 results) selected = root.currentValue.map( v => { const n = Number( v )