octobercms / october

Self-hosted CMS platform based on the Laravel PHP Framework.
https://octobercms.com/
Other
11.01k stars 2.22k forks source link

Default date for date filters does not get applied #5769

Closed LordRazen closed 7 months ago

LordRazen commented 8 months ago

October 3.5.12

I tried to activate the default date for date filters and I dont think it work anymore:

october/test/models/user/scopes.yaml

    created_at:
        label: Created
        type: date
        showWeekNumber: true
        default: '2020-01-02'
        # conditions:
        #     equals: true
        #     between: created_at >= ':after' AND created_at <= ':before'

https://docs.octobercms.com/3.x/element/filter/scope-date.html#php-interface According to the documentation it should still work, but it doesnt.

No date gets applied.

daftspunk commented 7 months ago

Hi @LordRazen

This should be fixed in v3.6.0

Thanks!

LordRazen commented 7 months ago

Thanks for fixing