From 32cae2ffc3217aa03716e90f26c73e54314d675e Mon Sep 17 00:00:00 2001 From: Wojtek Date: Thu, 15 Oct 2026 17:49:18 +0200 Subject: [PATCH] Hide redundant correct answer column --- README.md | 2 +- .../com_testquestions/sql/updates/mysql/1.13.3.sql | 1 + .../com_testquestions/tmpl/questions/default.php | 8 ++++++-- com_testquestions.xml | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 administrator/components/com_testquestions/sql/updates/mysql/1.13.3.sql diff --git a/README.md b/README.md index 29a2123..bff3b89 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,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.13.2). +W Joomla wybierz **System → Install → Install from Folder** i wskaż ten katalog. Manifestem instalacyjnym jest `com_testquestions.xml` (wersja 1.13.3). Po instalacji komponent jest dostępny w panelu administratora jako **Pytania testowe**. diff --git a/administrator/components/com_testquestions/sql/updates/mysql/1.13.3.sql b/administrator/components/com_testquestions/sql/updates/mysql/1.13.3.sql new file mode 100644 index 0000000..27f79e9 --- /dev/null +++ b/administrator/components/com_testquestions/sql/updates/mysql/1.13.3.sql @@ -0,0 +1 @@ +-- No database changes required for version 1.13.3. diff --git a/administrator/components/com_testquestions/tmpl/questions/default.php b/administrator/components/com_testquestions/tmpl/questions/default.php index bb59397..51b3281 100644 --- a/administrator/components/com_testquestions/tmpl/questions/default.php +++ b/administrator/components/com_testquestions/tmpl/questions/default.php @@ -48,7 +48,9 @@ HTMLHelper::_('behavior.multiselect'); - + state->get('filter.show_answers') !== 1) : ?> + + @@ -76,7 +78,9 @@ HTMLHelper::_('behavior.multiselect'); question_type)); ?> - correct_answer)); ?> + state->get('filter.show_answers') !== 1) : ?> + correct_answer)); ?> + published, $i, 'questions.', true, 'cb'); ?> id; ?> diff --git a/com_testquestions.xml b/com_testquestions.xml index 1f42108..837e71e 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.13.2 + 1.13.3 COM_TESTQUESTIONS_DESCRIPTION com_testquestions Komponent\Component\Testquestions