From f70031ab70720bfc06eb938c06fb71981571e0d6 Mon Sep 17 00:00:00 2001 From: Wojtek Date: Thu, 15 Oct 2026 17:01:52 +0200 Subject: [PATCH] Complete subject toolbar actions --- README.md | 2 +- .../components/com_testquestions/sql/updates/mysql/1.10.4.sql | 1 + .../components/com_testquestions/src/View/Subject/HtmlView.php | 2 ++ com_testquestions.xml | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 administrator/components/com_testquestions/sql/updates/mysql/1.10.4.sql diff --git a/README.md b/README.md index 304ae43..70b149f 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,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.10.3). +W Joomla wybierz **System → Install → Install from Folder** i wskaż ten katalog. Manifestem instalacyjnym jest `com_testquestions.xml` (wersja 1.10.4). Po instalacji komponent jest dostępny w panelu administratora jako **Pytania testowe**. diff --git a/administrator/components/com_testquestions/sql/updates/mysql/1.10.4.sql b/administrator/components/com_testquestions/sql/updates/mysql/1.10.4.sql new file mode 100644 index 0000000..5f6f9f3 --- /dev/null +++ b/administrator/components/com_testquestions/sql/updates/mysql/1.10.4.sql @@ -0,0 +1 @@ +-- No database changes required for version 1.10.4. diff --git a/administrator/components/com_testquestions/src/View/Subject/HtmlView.php b/administrator/components/com_testquestions/src/View/Subject/HtmlView.php index 09fa224..7599450 100644 --- a/administrator/components/com_testquestions/src/View/Subject/HtmlView.php +++ b/administrator/components/com_testquestions/src/View/Subject/HtmlView.php @@ -18,7 +18,9 @@ class HtmlView extends BaseHtmlView $this->form = $this->get('Form'); $this->item = $this->get('Item'); ToolbarHelper::title($this->item->id ? Text::_('COM_TESTQUESTIONS_EDIT_SUBJECT') : Text::_('COM_TESTQUESTIONS_NEW_SUBJECT')); + ToolbarHelper::apply('subject.apply', 'JTOOLBAR_APPLY'); ToolbarHelper::save('subject.save', 'JTOOLBAR_SAVE'); + ToolbarHelper::save2new('subject.save2new', 'JTOOLBAR_SAVE_AND_NEW'); ToolbarHelper::cancel('subject.cancel', 'JTOOLBAR_CANCEL'); return parent::display($tpl); diff --git a/com_testquestions.xml b/com_testquestions.xml index ffd7554..0ced3e9 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.10.3 + 1.10.4 COM_TESTQUESTIONS_DESCRIPTION com_testquestions Komponent\Component\Testquestions