diff --git a/Classes/Controller/QuizController.php b/Classes/Controller/QuizController.php index d236649..3a1b6d6 100644 --- a/Classes/Controller/QuizController.php +++ b/Classes/Controller/QuizController.php @@ -659,7 +659,9 @@ public function doAll(\Fixpunkt\FpMasterquiz\Domain\Model\Quiz $quiz, array $use $newPoints = intval(ceil($newPoints / 2)); } // jetzt später: $selected->addPoints($newPoints); - $questionPoints += $newPoints; + //if (($pmode==4 && $questionPoints==0) || $pmode<4) { + $questionPoints += $newPoints; + //} } $selected->addAnswer($answer); $selectedWithAnswer = true; @@ -670,10 +672,13 @@ public function doAll(\Fixpunkt\FpMasterquiz\Domain\Model\Quiz $quiz, array $use } if ($questionPoints != 0) { if (($pmode<3) || - ($pmode==3 && $questionPoints==$question->getMaximum1())) { + ($questionPoints==$question->getMaximum1())) { if ($pmode>0 && $questionPoints<0) { $questionPoints = 0; } + if ($pmode == 4) { + $questionPoints = 1; + } $selected->setPoints($questionPoints); $this->participant->addPoints($questionPoints); if ($this->settings['debug']) { diff --git a/ext_emconf.php b/ext_emconf.php index 7e7e09b..ae8bc7a 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -18,7 +18,7 @@ 'state' => 'stable', 'createDirs' => '', 'clearCacheOnLoad' => 0, - 'version' => '4.3.0', + 'version' => '4.3.1', 'constraints' => [ 'depends' => [ 'typo3' => '12.4.0-12.4.99',