From dc6b5ad3e8f1663a55179b94953e89d4b3e62fb9 Mon Sep 17 00:00:00 2001 From: Wojtek Date: Fri, 16 Oct 2026 12:47:24 +0200 Subject: [PATCH] Hide correction fields for closed questions --- README.md | 2 +- .../sql/updates/mysql/1.43.2.sql | 1 + .../com_testquestions/tmpl/result/default.php | 20 ++++++++++--------- com_testquestions.xml | 2 +- 4 files changed, 14 insertions(+), 11 deletions(-) create mode 100644 administrator/components/com_testquestions/sql/updates/mysql/1.43.2.sql diff --git a/README.md b/README.md index 82e40e4..585ee96 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.43.1). +W Joomla wybierz **System → Install → Install from Folder** i wskaż ten katalog. Manifestem instalacyjnym jest `com_testquestions.xml` (wersja 1.43.2). Po instalacji komponent jest dostępny w panelu administratora jako **Pytania testowe**. diff --git a/administrator/components/com_testquestions/sql/updates/mysql/1.43.2.sql b/administrator/components/com_testquestions/sql/updates/mysql/1.43.2.sql new file mode 100644 index 0000000..6dba83a --- /dev/null +++ b/administrator/components/com_testquestions/sql/updates/mysql/1.43.2.sql @@ -0,0 +1 @@ +-- No database changes required for version 1.43.2. diff --git a/administrator/components/com_testquestions/tmpl/result/default.php b/administrator/components/com_testquestions/tmpl/result/default.php index ff23873..dad1245 100644 --- a/administrator/components/com_testquestions/tmpl/result/default.php +++ b/administrator/components/com_testquestions/tmpl/result/default.php @@ -60,16 +60,18 @@
:
-
-
- - + question_type === 'open') : ?> +
+
+ + +
+
+ + +
-
- - -
-
+ diff --git a/com_testquestions.xml b/com_testquestions.xml index 9d14619..b1133a2 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.43.1 + 1.43.2 COM_TESTQUESTIONS_DESCRIPTION com_testquestions Komponent\Component\Testquestions