diff --git a/README.md b/README.md
index 8be2305..222a2ca 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.0).
+W Joomla wybierz **System → Install → Install from Folder** i wskaż ten katalog. Manifestem instalacyjnym jest `com_testquestions.xml` (wersja 1.37.1).
Po instalacji komponent jest dostępny w panelu administratora jako **Pytania testowe**.
diff --git a/administrator/components/com_testquestions/sql/updates/mysql/1.37.1.sql b/administrator/components/com_testquestions/sql/updates/mysql/1.37.1.sql
new file mode 100644
index 0000000..6319cbd
--- /dev/null
+++ b/administrator/components/com_testquestions/sql/updates/mysql/1.37.1.sql
@@ -0,0 +1 @@
+-- No database changes required for version 1.37.1.
diff --git a/administrator/components/com_testquestions/src/Controller/SetController.php b/administrator/components/com_testquestions/src/Controller/SetController.php
index 3b164cb..10015f7 100644
--- a/administrator/components/com_testquestions/src/Controller/SetController.php
+++ b/administrator/components/com_testquestions/src/Controller/SetController.php
@@ -17,6 +17,19 @@ class SetController extends FormController
$this->setRedirect('index.php?option=com_testquestions&view=set&layout=edit&parent_id=' . $parentId);
}
+ public function save2close($key = null, $urlVar = null)
+ {
+ $formData = (array) $this->input->post->get('jform', [], 'array');
+ $parentId = (int) ($formData['parent_id'] ?? 0);
+ $result = parent::save2close($key, $urlVar);
+
+ if ($result && $parentId > 0) {
+ $this->setRedirect('index.php?option=com_testquestions&task=set.edit&id=' . $parentId);
+ }
+
+ return $result;
+ }
+
public function cancel($key = null)
{
$parentId = $this->input->getInt('parent_id');
diff --git a/com_testquestions.xml b/com_testquestions.xml
index 858a919..6bf3db6 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.0
+ 1.37.1
COM_TESTQUESTIONS_DESCRIPTION
com_testquestions
Komponent\Component\Testquestions