From c0a6253dbe47cf9f8345b63ba49a14654bedc164 Mon Sep 17 00:00:00 2001 From: Wojtek Date: Wed, 14 Oct 2026 22:38:23 +0200 Subject: [PATCH] Fix exam metadata field visibility --- README.md | 2 +- .../com_testquestions/forms/question.xml | 4 +-- .../sql/updates/mysql/1.4.2.sql | 1 + .../com_testquestions/tmpl/question/edit.php | 28 +++++++++++++++++++ com_testquestions.xml | 2 +- 5 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 administrator/components/com_testquestions/sql/updates/mysql/1.4.2.sql diff --git a/README.md b/README.md index eec20f5..df9968e 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,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.4.1). +W Joomla wybierz **System → Install → Install from Folder** i wskaż ten katalog. Manifestem instalacyjnym jest `com_testquestions.xml` (wersja 1.4.2). Po instalacji komponent jest dostępny w panelu administratora jako **Pytania testowe**. diff --git a/administrator/components/com_testquestions/forms/question.xml b/administrator/components/com_testquestions/forms/question.xml index 460a275..36d85bd 100644 --- a/administrator/components/com_testquestions/forms/question.xml +++ b/administrator/components/com_testquestions/forms/question.xml @@ -17,8 +17,8 @@ - - + + diff --git a/administrator/components/com_testquestions/sql/updates/mysql/1.4.2.sql b/administrator/components/com_testquestions/sql/updates/mysql/1.4.2.sql new file mode 100644 index 0000000..c929fc4 --- /dev/null +++ b/administrator/components/com_testquestions/sql/updates/mysql/1.4.2.sql @@ -0,0 +1 @@ +-- Toggle exam metadata fields based on the test symbol in the question form. diff --git a/administrator/components/com_testquestions/tmpl/question/edit.php b/administrator/components/com_testquestions/tmpl/question/edit.php index 807f911..a60d0f3 100644 --- a/administrator/components/com_testquestions/tmpl/question/edit.php +++ b/administrator/components/com_testquestions/tmpl/question/edit.php @@ -34,3 +34,31 @@ defined('_JEXEC') or die; + diff --git a/com_testquestions.xml b/com_testquestions.xml index 6158236..33a6eb1 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.4.1 + 1.4.2 COM_TESTQUESTIONS_DESCRIPTION com_testquestions Komponent\Component\Testquestions