Skip to content

Commit 5bed672

Browse files
committed
fix: is_printable condition ( tickets filter )
1 parent 50e0b53 commit 5bed672

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/Repositories/Summit/DoctrineSummitAttendeeTicketRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,11 @@ protected function getFilterMappings()
182182
new DoctrineSwitchFilterMapping([
183183
'1' => new DoctrineCaseFilterMapping(
184184
'true',
185-
sprintf("e.is_active = 1 and al.name = '%s'", SummitAccessLevelType::IN_PERSON),
185+
sprintf("(e.is_active = 1 and al.name = '%s' and a is not null)", SummitAccessLevelType::IN_PERSON),
186186
),
187187
'0' => new DoctrineCaseFilterMapping(
188188
'false',
189-
sprintf("not(e.is_active = 1 and al.name = '%s')", SummitAccessLevelType::IN_PERSON),
189+
sprintf("not(e.is_active = 1 and al.name = '%s' amd a is not null)", SummitAccessLevelType::IN_PERSON),
190190
),
191191
]
192192
),

0 commit comments

Comments
 (0)