Skip to content

Filter applied with invalid range input (Number and Date from/to widgets) #4503

@RastoHu

Description

@RastoHu

Description

When a Number (from/to) or Date (from/to) filter is configured with an invalid range (Min > Max / From > To), the app shows a validation error but still allows the filter to be submitted. Tapping "Apply filters" applies the filter and returns 0 features instead of blocking submission.

Environment

  • PROD

Application (+ app version, build, operating system)
Mergin Maps iOS 2026.2.0 / iOS 26.4

Steps to reproduce

  1. Open a project with a Number (from/to) filter configured
  2. Open Filters → Number filter → enter Min = 100, Max = 10
  3. Observe the validation error → tap Apply filters
  4. Open the layer features list
  5. Repeat for a Date (from/to) filter → set From = 01/05/2026, To = 20/04/2026 → Apply filters

Actual results

  • Validation error "Min" must be less than "Max" / "From" must be sooner than "To" is shown under both fields with red borders
  • Apply filters button remains active and filter is submitted
  • 0 features returned; "Active filters applied" banner shown in the features list

Expected results

  • Apply filters button should be disabled when a validation error is present
  • Filter should not be submitted until the range is corrected

Screenshots or logs


Conclusion
Created by Claude and supervised by a human test analyst.

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions