Skip to content

PageList erroneously returns pages out of filtered range #6724

@gfischershaw

Description

@gfischershaw

When filtering by 'now', 'past' or 'future' PageList block returns pages that are not within the filtered range.

For 'now' the controller selects all pages on the current day, rather than current day to current time.

For 'past' the controller selects all pages from the specified time in the past until the end of the current day, rather than to the current time.

For 'future' the controller selects all pages from the beginning of the current day to the specified time in the future, rather than from the current time.

This is easily fixed by using toDB() as shown in the attached controller.php file (attached as a TXT).

I believe the 'between' is probably OK.

I also believe that the action_filter_by_date() method is OK as is.
controller.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions