diff --git a/README.md b/README.md index 7ef7bf2..40d567e 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.37). +W Joomla wybierz **System → Install → Install from Folder** i wskaż ten katalog. Manifestem instalacyjnym jest `com_testquestions.xml` (wersja 1.43.38). Po instalacji komponent jest dostępny w panelu administratora jako **Pytania testowe**. diff --git a/administrator/components/com_testquestions/sql/updates/mysql/1.43.38.sql b/administrator/components/com_testquestions/sql/updates/mysql/1.43.38.sql new file mode 100644 index 0000000..0706394 --- /dev/null +++ b/administrator/components/com_testquestions/sql/updates/mysql/1.43.38.sql @@ -0,0 +1 @@ +-- Brak zmian w schemacie bazy danych w wersji 1.43.38. diff --git a/administrator/components/com_testquestions/tmpl/result/default.php b/administrator/components/com_testquestions/tmpl/result/default.php index 2c21c64..6d9be05 100644 --- a/administrator/components/com_testquestions/tmpl/result/default.php +++ b/administrator/components/com_testquestions/tmpl/result/default.php @@ -47,7 +47,8 @@ $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 aiComment = commentBlock.dataset.aiComment || ''; + const visibleAiFeedback = document.querySelector('.ai-feedback-screen[data-question-id="' + questionId + '"] .ai-feedback-text')?.textContent.trim() || ''; + const aiComment = visibleAiFeedback || commentBlock.dataset.aiComment || ''; const output = commentBlock.querySelector('.result-pdf-comment-text'); if (output) { @@ -172,7 +173,7 @@ $resolveImageUrl = static function ($path) { $maxPoints = (int) ($question->points ?? 0); $aiAlertClass = $aiPoints <= 0 ? 'alert-danger' : ($aiPoints >= $maxPoints ? 'alert-success' : 'alert-info'); ?> -
:
+
:
question_type === 'open' && $hasResponse) : ?> diff --git a/com_testquestions.xml b/com_testquestions.xml index e1d32ee..43565c3 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.43.37 + 1.43.38 COM_TESTQUESTIONS_DESCRIPTION com_testquestions Komponent\Component\Testquestions