diff --git a/README.md b/README.md
index adcbda3..e59afd1 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.40).
+W Joomla wybierz **System → Install → Install from Folder** i wskaż ten katalog. Manifestem instalacyjnym jest `com_testquestions.xml` (wersja 1.43.41).
Po instalacji komponent jest dostępny w panelu administratora jako **Pytania testowe**.
diff --git a/administrator/components/com_testquestions/sql/updates/mysql/1.43.41.sql b/administrator/components/com_testquestions/sql/updates/mysql/1.43.41.sql
new file mode 100644
index 0000000..bc2dec4
--- /dev/null
+++ b/administrator/components/com_testquestions/sql/updates/mysql/1.43.41.sql
@@ -0,0 +1 @@
+-- Brak zmian w schemacie bazy danych w wersji 1.43.41.
diff --git a/administrator/components/com_testquestions/tmpl/result/default.php b/administrator/components/com_testquestions/tmpl/result/default.php
index f3aa8ef..db17fd2 100644
--- a/administrator/components/com_testquestions/tmpl/result/default.php
+++ b/administrator/components/com_testquestions/tmpl/result/default.php
@@ -46,7 +46,10 @@ $resolveImageUrl = static function ($path) {
window.addEventListener('beforeprint', function () {
document.querySelectorAll('.result-pdf-comment').forEach(function (commentBlock) {
const questionId = commentBlock.dataset.questionId;
- const manualComment = document.getElementById('result-comment-' + questionId)?.value.trim() || '';
+ let manualComment = document.getElementById('result-comment-' + questionId)?.value.trim() || '';
+ if (manualComment === '-' || manualComment === '—') {
+ manualComment = '';
+ }
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 = storedAiFeedback || visibleAiFeedback;
@@ -133,6 +136,9 @@ $resolveImageUrl = static function ($path) {
$answerStatusPartial = $awardedPoints > 0 && !$answerStatusCorrect;
}
$manualComment = trim((string) ($answer['comment'] ?? ''));
+ if ($manualComment === '-' || $manualComment === '—') {
+ $manualComment = '';
+ }
$aiComment = trim((string) ($answer['ai_feedback'] ?? ''));
$printComment = $manualComment !== '' ? $manualComment : $aiComment;
?>
diff --git a/com_testquestions.xml b/com_testquestions.xml
index e260ad5..8ed1a93 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.40
+ 1.43.41
COM_TESTQUESTIONS_DESCRIPTION
com_testquestions
Komponent\Component\Testquestions