Skip to content

Got unexpected result using _custom Selector with OR Option (Checkbox) #2268

@kixe

Description

@kixe

Expecting same result, got different

$selector = 'parent.id=14209, _custom=(date_start>=today), _custom=(date_end>=today)';
// RESULT: array(0) { } 
$selector = 'parent.id=14209, _custom="date_start|date_end>=today"';
// RESULT: array(1) { [0]=> int(31734) }

$res = wire('pages')->findIDs($selector, ['allowCustom' => true]);
var_dump($res);
Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions