Skip to content

Commit

Permalink
Version 4.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bihor committed Mar 1, 2024
1 parent 234dea1 commit 3bbf704
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions Classes/Controller/QuizController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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']) {
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 3bbf704

Please sign in to comment.