From 3ee0b22d75f33f5b57e99f7c07eef34df9b104e9 Mon Sep 17 00:00:00 2001 From: Wojtek Date: Fri, 16 Oct 2026 10:35:23 +0200 Subject: [PATCH] Remove apply button from set form --- README.md | 2 +- .../components/com_testquestions/sql/updates/mysql/1.38.0.sql | 1 + .../components/com_testquestions/src/View/Set/HtmlView.php | 1 - com_testquestions.xml | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 administrator/components/com_testquestions/sql/updates/mysql/1.38.0.sql diff --git a/README.md b/README.md index 3baa789..f3d82a7 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.37.3). +W Joomla wybierz **System → Install → Install from Folder** i wskaż ten katalog. Manifestem instalacyjnym jest `com_testquestions.xml` (wersja 1.38.0). Po instalacji komponent jest dostępny w panelu administratora jako **Pytania testowe**. diff --git a/administrator/components/com_testquestions/sql/updates/mysql/1.38.0.sql b/administrator/components/com_testquestions/sql/updates/mysql/1.38.0.sql new file mode 100644 index 0000000..949c12d --- /dev/null +++ b/administrator/components/com_testquestions/sql/updates/mysql/1.38.0.sql @@ -0,0 +1 @@ +-- No database changes required for version 1.38.0. diff --git a/administrator/components/com_testquestions/src/View/Set/HtmlView.php b/administrator/components/com_testquestions/src/View/Set/HtmlView.php index 15fafea..6787456 100644 --- a/administrator/components/com_testquestions/src/View/Set/HtmlView.php +++ b/administrator/components/com_testquestions/src/View/Set/HtmlView.php @@ -36,7 +36,6 @@ class HtmlView extends BaseHtmlView protected function addToolbar() { ToolbarHelper::title($this->item->id ? Text::_('COM_TESTQUESTIONS_EDIT_SET') : Text::_('COM_TESTQUESTIONS_NEW_SET')); - ToolbarHelper::apply('set.apply', 'JTOOLBAR_APPLY'); ToolbarHelper::custom('set.save', 'save', 'save', 'COM_TESTQUESTIONS_SET_SAVE', false); ToolbarHelper::custom('set.saveandclose', 'save', 'save', 'COM_TESTQUESTIONS_SET_SAVE_AND_CLOSE', false); ToolbarHelper::cancel('set.cancel', 'JTOOLBAR_CANCEL'); diff --git a/com_testquestions.xml b/com_testquestions.xml index a7ae631..d2273c5 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.37.3 + 1.38.0 COM_TESTQUESTIONS_DESCRIPTION com_testquestions Komponent\Component\Testquestions