This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hi there! I'm having an issue setting up a custom filter in the backend. I have this configuration for the filter.
scopes:
status:
label: Status
type: group
options: [rejected, approved, pending]
scope: filterByStatus
It all work Ok, but for some reason, the first item in the options array is not being used for filtering. approved
and pending
works fine, but rejected
doesn't. The issue is only with the first item, doesn't matter which one I put there.
If in the filter I choose either appoved
, pending
or both, when I refresh the page there are selected, but this doesn't happen with rejected
. Also, the list is not filtering by reject
.
Any idea why this could be happening?
Thanks a lot in advance.
I've found the solution, it turns out the the options array was wrong, even if is a valid yaml notation. The right way is:
scopes:
status:
label: Status
type: group
scope: filterByStatus
options:
pending: Pending
approved: Approved
rejected: Rejected
Hope this could help someone in the future. :) Bests, Mario
1-3 of 3