Filter exam sheets by E symbol

This commit is contained in:
Wojtek
2026-10-15 09:30:40 +02:00
parent e7c40292b7
commit 270143ad6a
5 changed files with 5 additions and 3 deletions
@@ -53,6 +53,7 @@ class QuestionsModel extends ListModel
->leftJoin($db->quoteName('#__testquestions_categories', 'c') . ' ON c.id = q.category_id')
->where('q.' . $db->quoteName('published') . ' = 1')
->where('q.' . $db->quoteName('test_symbol') . ' <> ' . $db->quote(''))
->where('q.' . $db->quoteName('test_symbol') . ' LIKE ' . $db->quote('E%'))
->group(['q.' . $db->quoteName('test_symbol'), 'q.' . $db->quoteName('exam_year'), 'c.' . $db->quoteName('title')])
->order('q.' . $db->quoteName('exam_year') . ' DESC, q.' . $db->quoteName('test_symbol') . ' ASC')
)->loadObjectList();