Skip to content

One condition is shown but another is applied in GenericFilter #5516

Description

@mig-sam

Environment

Jmix version: 3.0.999-SNAPSHOT
Jmix Studio Plugin Version: 3.0.1-261
IntelliJ version: IntelliJ IDEA 2026.1

Bug Description

The user sees a GenericFilter with the condition from the openOrders configuration, but the rows are fetched using a different condition -PropertyCondition.greaterOrEqual("amount", BigDecimal.valueOf(100))

Steps To Reproduce

1.Launch demo project
2.Navigate to Scenario 16 view
3.Click button Set base AFTER activation (amount ≥ 100)
Following code will be executed:

        // Set the base AFTER a configuration is active; it is adopted on the next configuration switch.
        genericFilter.setCurrentConfiguration(genericFilter.getConfiguration("openOrders"));
        genericFilter.getDataLoader().setCondition(PropertyCondition.greaterOrEqual("amount", BigDecimal.valueOf(100)));
        genericFilter.apply();

Current Behavior

One condition is shown but another is applied in GenericFilter

Expected Behavior

Should be shown condition that is applied

Sample Project

Image

filter-test.zip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions