Hide variants from main set list

This commit is contained in:
Wojtek
2026-10-16 10:20:00 +02:00
parent 8cc1862178
commit 2e3bbe6fc6
4 changed files with 4 additions and 2 deletions
@@ -26,6 +26,7 @@ class SetsModel extends ListModel
->leftJoin($db->quoteName('#__testquestions_subjects', 'sub') . ' ON sub.id = s.subject_id')
->leftJoin($db->quoteName('#__testquestions_sets', 'p') . ' ON p.id = s.parent_id')
->leftJoin($db->quoteName('#__testquestions_set_questions', 'sq') . ' ON sq.set_id = s.id')
->where('s.parent_id = 0')
->group('s.id');
$search = trim((string) $this->getState('filter.search'));