From 27f37e85003e068989247a2a5369933614eda39e Mon Sep 17 00:00:00 2001 From: Wojtek Date: Thu, 15 Oct 2026 12:28:00 +0200 Subject: [PATCH] Show all exam questions --- README.md | 2 +- .../components/com_testquestions/sql/updates/mysql/1.7.1.sql | 1 + com_testquestions.xml | 2 +- components/com_testquestions/src/Model/QuestionsModel.php | 1 + components/com_testquestions/tmpl/questions/default.php | 4 ---- 5 files changed, 4 insertions(+), 6 deletions(-) create mode 100644 administrator/components/com_testquestions/sql/updates/mysql/1.7.1.sql diff --git a/README.md b/README.md index a4a42b2..a1d8018 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,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.7.0). +W Joomla wybierz **System → Install → Install from Folder** i wskaż ten katalog. Manifestem instalacyjnym jest `com_testquestions.xml` (wersja 1.7.1). Po instalacji komponent jest dostępny w panelu administratora jako **Pytania testowe**. diff --git a/administrator/components/com_testquestions/sql/updates/mysql/1.7.1.sql b/administrator/components/com_testquestions/sql/updates/mysql/1.7.1.sql new file mode 100644 index 0000000..7f2e9c3 --- /dev/null +++ b/administrator/components/com_testquestions/sql/updates/mysql/1.7.1.sql @@ -0,0 +1 @@ +-- No database changes required for version 1.7.1. diff --git a/com_testquestions.xml b/com_testquestions.xml index 5f2fca2..1a14fe2 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.7.0 + 1.7.1 COM_TESTQUESTIONS_DESCRIPTION com_testquestions Komponent\Component\Testquestions diff --git a/components/com_testquestions/src/Model/QuestionsModel.php b/components/com_testquestions/src/Model/QuestionsModel.php index c3e15cb..c130cae 100644 --- a/components/com_testquestions/src/Model/QuestionsModel.php +++ b/components/com_testquestions/src/Model/QuestionsModel.php @@ -16,6 +16,7 @@ class QuestionsModel extends ListModel $menuSymbol = $menu ? (string) $menu->getParams()->get('test_symbol', '') : ''; $symbol = Factory::getApplication()->getInput()->getString('test_symbol', $menuSymbol); $this->setState('filter.test_symbol', trim($symbol)); + $this->setState('list.limit', 0); } protected function getListQuery() diff --git a/components/com_testquestions/tmpl/questions/default.php b/components/com_testquestions/tmpl/questions/default.php index 70140db..a085005 100644 --- a/components/com_testquestions/tmpl/questions/default.php +++ b/components/com_testquestions/tmpl/questions/default.php @@ -40,10 +40,6 @@ use Joomla\CMS\HTML\HTMLHelper; image) : ?> -

- : time_limit; ?> s | - : points; ?> -

question_type === 'open') : ?>