Skip to content

Enable dynamic filters (date & date_time) to be submitted with an empty value #2839

Open
@NowakJR

Description

@NowakJR

Describe the bug

Steps to Reproduce

Steps to reproduce the behavior:

  1. Add dynamic filter to date field in any resource
  2. go to resource index page
  3. Click on 'Add filter'
  4. Click apply without selecting any date
  5. See error

Expected behavior & Actual behavior

Apply button should not be clickable without selected date or default date should be DateTime.current

System configuration

Avo version: 3.7.4

Rails version: 7.0.8.4

Ruby version: 3.2.2

License type:

  • Community
  • Pro
  • Advanced

Are you using Avo monkey patches, overriding views or view components?

  • Yes. If so, please post code samples.
  • No

Urgency

  • High urgency (I can't continue development without it.)
  • Medium urgency (I found a workaround, but I'd love to have it fixed.)
  • Low urgency (It can wait. I just wanted you to know about it.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions