diff --git a/README.md b/README.md index 40d567e..a189907 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.43.38). +W Joomla wybierz **System → Install → Install from Folder** i wskaż ten katalog. Manifestem instalacyjnym jest `com_testquestions.xml` (wersja 1.43.39). Po instalacji komponent jest dostępny w panelu administratora jako **Pytania testowe**. diff --git a/administrator/components/com_testquestions/sql/updates/mysql/1.43.39.sql b/administrator/components/com_testquestions/sql/updates/mysql/1.43.39.sql new file mode 100644 index 0000000..09a9340 --- /dev/null +++ b/administrator/components/com_testquestions/sql/updates/mysql/1.43.39.sql @@ -0,0 +1 @@ +-- Brak zmian w schemacie bazy danych w wersji 1.43.39. diff --git a/administrator/components/com_testquestions/tmpl/result/default.php b/administrator/components/com_testquestions/tmpl/result/default.php index 6d9be05..c3d9e6c 100644 --- a/administrator/components/com_testquestions/tmpl/result/default.php +++ b/administrator/components/com_testquestions/tmpl/result/default.php @@ -47,8 +47,9 @@ $resolveImageUrl = static function ($path) { document.querySelectorAll('.result-pdf-comment').forEach(function (commentBlock) { const questionId = commentBlock.dataset.questionId; const manualComment = document.getElementById('result-comment-' + questionId)?.value.trim() || ''; + const storedAiFeedback = commentBlock.querySelector('.result-pdf-ai-source')?.textContent.trim() || ''; const visibleAiFeedback = document.querySelector('.ai-feedback-screen[data-question-id="' + questionId + '"] .ai-feedback-text')?.textContent.trim() || ''; - const aiComment = visibleAiFeedback || commentBlock.dataset.aiComment || ''; + const aiComment = storedAiFeedback || visibleAiFeedback; const output = commentBlock.querySelector('.result-pdf-comment-text'); if (output) { @@ -147,6 +148,7 @@ $resolveImageUrl = static function ($path) {
+