Skip to content

Commit 50c210c

Browse files
committed
v. 7.2.5
1 parent 68b469b commit 50c210c

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

Classes/Controller/QuizController.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ public function doAll(Quiz $quiz, array $userData, int $pages, array $randomNumb
473473
$showAnswerPage = false;
474474
} else {
475475
if ($reachedPage >= $page) {
476-
// beantwortete Seiten soll man nicht nochmal beantworten können
476+
// Beantwortete Seiten soll man nicht nochmal beantworten können
477477
$showAnswers = true;
478478
}
479479

@@ -881,14 +881,14 @@ public function doAll(Quiz $quiz, array $userData, int $pages, array $randomNumb
881881
}
882882

883883
if (!$mandatoryNotAnswered) {
884-
// toggle mode for show answers after submit questions
884+
// toggle mode for show answers after submitting questions
885885
if ($showAnswerPage) {
886886
$showAnswersNext = $showAnswers == 1 ? 0 : 1;
887887
} else {
888888
$showAnswersNext = 0;
889889
}
890890
} else {
891-
// benötigte Felder wurden nicht ausgefüllt
891+
// Benötigte Felder wurden nicht ausgefüllt
892892
$showAnswers = 0;
893893
$nextPage = $this->request->hasArgument('currentPage') ? intval($this->request->getArgument('currentPage')) : 1;
894894
if ($showAnswerPage) {
@@ -911,7 +911,7 @@ public function doAll(Quiz $quiz, array $userData, int $pages, array $randomNumb
911911
$debug .= "\ntime period=" . $quiz->getTimeperiod() . '; time passed: ' . $this->participant->getTimePassed();
912912
}
913913

914-
if ($page > $pages) {
914+
if (($page > $pages) && ($this->participant->getUid() > 0)) {
915915
// finale Auswertung ...
916916
$final = 1;
917917
$showAnswersNext = 0;
@@ -928,7 +928,7 @@ public function doAll(Quiz $quiz, array $userData, int $pages, array $randomNumb
928928

929929
if ($categoryUid) {
930930
if (!isset($finalCategoryArray['uid'])) {
931-
// hole die am meisten angeklickte Kategorie + andere Daten nur einmal
931+
// Hole die am meisten angeklickte Kategorie + andere Daten nur einmal
932932
$finalCategoryArray = $this->participant->getCategoryMost();
933933
}
934934

@@ -976,13 +976,13 @@ public function doAll(Quiz $quiz, array $userData, int $pages, array $randomNumb
976976

977977
// Alle Ergebnisse nicht nur das eigene anzeigen
978978
if ($this->settings['showAllAnswers'] == 1) {
979-
// alle Fragen durchgehen, die der User beantwortet hat:
979+
//Alle Fragen durchgehen, die der User beantwortet hat:
980980
foreach ($this->participant->getSortedSelections() as $selection) {
981981
$oneQuestion = $selection->getQuestion();
982982
$oneQuestionCategories = $oneQuestion->getQmode() == 8 ? $oneQuestion->getCategoriesArray() : [];
983983

984984
$debug .= $this->setAllUserAnswersForOneQuestion($oneQuestion, 0, false);
985-
// eigene Ergebnisse durchgehen
985+
// Eigene Ergebnisse durchgehen
986986
$ownResults = [];
987987
foreach ($selection->getAnswers() as $oneAnswer) {
988988
if ($this->withDebug()) {
@@ -1014,7 +1014,7 @@ public function doAll(Quiz $quiz, array $userData, int $pages, array $randomNumb
10141014
}
10151015
}
10161016
} elseif ($this->settings['showOwnAnswers']) {
1017-
// alle Fragen durchgehen, die der User beantwortet hat:
1017+
// Alle Fragen durchgehen, die der User beantwortet hat:
10181018
foreach ($this->participant->getSortedSelections() as $selection) {
10191019
$oneQuestion = $selection->getQuestion();
10201020
if ($oneQuestion->getQmode() == 8) {

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# fp_masterquiz
22

3-
version 7.2.4
3+
version 7.2.5
44

55
TYPO3 extension to create a quiz, poll or test. The participant result will be saved in the DB too and can be deleted automatically via Scheduler.
66

@@ -63,8 +63,11 @@ Changes in 7.2.2:
6363
- Update script for permissions added.
6464

6565
Changes in 7.2.4:
66-
- Prevent of sending empty input field with enter.
66+
- Prevent sending empty input field with enter.
6767
- Make logging into typo3_fpmasterquiz_xxx.log optional.
6868

69+
Changes in 7.2.5:
70+
- Bugfix: prevent the final page when there is no participant-uid.
71+
6972
You find the whole changelog here:
7073
https://raw.githubusercontent.com/fixpunkt-com/fp_masterquiz/refs/heads/master/Documentation/ChangeLog/Index.rst

ext_emconf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
'category' => 'plugin',
1717
'author' => 'Kurt Gusbeth',
1818
'state' => 'stable',
19-
'version' => '7.2.4',
19+
'version' => '7.2.5',
2020
'constraints' => [
2121
'depends' => [
2222
'typo3' => '13.4.0-13.4.99',

0 commit comments

Comments
 (0)