Skip to content

Commit fb78327

Browse files
committed
fix: has_not_media_upload_with_type condition on speaker repo query
1 parent ed1ee42 commit fb78327

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

app/Repositories/Summit/DoctrineSpeakerRepository.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ protected function getFilterMappings()
7676
}
7777
if($filter->hasFilter("has_not_media_upload_with_type")){
7878
$v = $filter->getValue("has_not_media_upload_with_type");
79-
$extraSelectionStatusFilter .= ' AND __mut%1$s.id NOT IN ('.implode(',', $v).')';
79+
$extraSelectionStatusFilter .= ' AND NOT EXISTS (
80+
SELECT __pm%1$s_%1$s.id FROM models\summit\PresentationMediaUpload __pm%1$s_%1$s
81+
LEFT JOIN __pm%1$s_%1$s.media_upload_type __mut%1$s_%1$s
82+
WHERE __pm%1$s_%1$s.presentation = __p%1$s AND __mut%1$s_%1$s.id IN ('.implode(',', $v).')
83+
) ';
8084
}
8185
}
8286

0 commit comments

Comments
 (0)