Skip to content

Activities view: Date filters ("Scheduled From/To") fail for ranges, working only on exact single-date match #2432

@PhyBruno

Description

@PhyBruno

Bug report

Title

Activities view: Date filters ("Scheduled From/To") fail for ranges, working only on exact single-date match

Issue Description

The "Scheduled From" (Agendado de) and "Scheduled To" (Agendado até) filters on the Activities screen (/admin/activities) are not functioning as a date range filter.

They only return results if both "From" and "To" are set to the exact same date as the activity. If a range is selected (e.g., entire month) that includes the activity date, the system returns zero results on the screen.

Preconditions

Environment details:

  1. Framework Version: Krayin CRM v2.1.5
  2. Deployment: Docker (image webkul/krayin) exposed via Traefik.
  3. Browser/OS: Chrome / Firefox.

Steps to reproduce

  1. Create an Activity scheduled for a specific date (e.g., 2025-10-15).
  2. Navigate to the Activities list view (/admin/activities).
  3. Test 1 (Range - Fails): Set "Scheduled From" to 2026-01-26 and "Scheduled To" to 2026-02-01. Or set only one of the fields.
  • Result: List is empty.
Image Image
  1. Test 2 (Exact Match - Works): Set "Scheduled From" to 2026-01-26`` and "Scheduled To" to 2026-01-31`.
  • Result: The activity is displayed.
Image

Expected result

The filter should accept a date range. Test 1 should display the activity because Jan 26th is within the Jan 1st - Jan 31st range.

Actual result

The filter logic seems to be checking for an exact match on the date parameters rather than a "Greater Than / Less Than" condition.

  • Range Query (From X to Y): Returns N records, but no show on the screen.
  • Exact Query (From X to X): Returns records.

krayin.yaml

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions