diff --git a/README.md b/README.md index f855067..fdb8c78 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,6 @@ Szkielet komponentu Joomla 6 do gromadzenia pytań testowych. ## Instalacja -W Joomla wybierz **System → Install → Install from Folder** i wskaż ten katalog. Manifestem instalacyjnym jest `com_testquestions.xml` (wersja 1.34.0). +W Joomla wybierz **System → Install → Install from Folder** i wskaż ten katalog. Manifestem instalacyjnym jest `com_testquestions.xml` (wersja 1.35.0). Po instalacji komponent jest dostępny w panelu administratora jako **Pytania testowe**. diff --git a/administrator/components/com_testquestions/sql/updates/mysql/1.35.0.sql b/administrator/components/com_testquestions/sql/updates/mysql/1.35.0.sql new file mode 100644 index 0000000..fa08ae1 --- /dev/null +++ b/administrator/components/com_testquestions/sql/updates/mysql/1.35.0.sql @@ -0,0 +1 @@ +-- No database changes required for version 1.35.0. diff --git a/administrator/components/com_testquestions/src/Model/SetsModel.php b/administrator/components/com_testquestions/src/Model/SetsModel.php index 9bc2da6..3d20d8d 100644 --- a/administrator/components/com_testquestions/src/Model/SetsModel.php +++ b/administrator/components/com_testquestions/src/Model/SetsModel.php @@ -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')); diff --git a/com_testquestions.xml b/com_testquestions.xml index 45ba0db..995ee2c 100644 --- a/com_testquestions.xml +++ b/com_testquestions.xml @@ -4,7 +4,7 @@ 2026-10-14 Komponent GNU General Public License version 2 or later - 1.34.0 + 1.35.0 COM_TESTQUESTIONS_DESCRIPTION com_testquestions Komponent\Component\Testquestions