Skip to content

Commit

Permalink
Version 4.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
bihor committed Jan 24, 2024
1 parent 805ad02 commit 80cb029
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 6 deletions.
8 changes: 7 additions & 1 deletion Classes/Controller/QuizController.php
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,11 @@ public function doAll(\Fixpunkt\FpMasterquiz\Domain\Model\Quiz $quiz, array $use
$this->participantRepository->update($this->participant);
$doPersist = true;
}
if ($this->settings['redirectToResultPageAtFinal'] && $this->settings['resultPageUid'] && !$redirectTo) {
$redirectTo = $this->uriBuilder->reset()
->setTargetPageUid(intval($this->settings['resultPageUid']))
->build();
}
} else {
$final = 0;
}
Expand Down Expand Up @@ -1855,7 +1860,7 @@ public function highscoreAction(\Fixpunkt\FpMasterquiz\Domain\Model\Quiz $quiz =
}

/**
* action show
* action closure: show only text and links
*
* @param \Fixpunkt\FpMasterquiz\Domain\Model\Participant $participant
* @param string $session
Expand All @@ -1877,6 +1882,7 @@ public function closureAction(\Fixpunkt\FpMasterquiz\Domain\Model\Participant $p
return $this->htmlResponse();
}


/**
* Action index for the backend
*
Expand Down
18 changes: 18 additions & 0 deletions Configuration/FlexForms/flexform_pi1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,24 @@
</config>
</TCEforms>
</settings.random>
<settings.redirectToResultPageAtFinal>
<TCEforms>
<label>LLL:EXT:fp_masterquiz/Resources/Private/Language/locallang_be.xlf:settings.redirectToResultPageAtFinal</label>
<config>
<type>radio</type>
<items type="array">
<numIndex index="0" type="array">
<numIndex index="0">LLL:EXT:fp_masterquiz/Resources/Private/Language/locallang_be.xlf:settings.no</numIndex>
<numIndex index="1">0</numIndex>
</numIndex>
<numIndex index="1" type="array">
<numIndex index="0">LLL:EXT:fp_masterquiz/Resources/Private/Language/locallang_be.xlf:settings.yes</numIndex>
<numIndex index="1">1</numIndex>
</numIndex>
</items>
</config>
</TCEforms>
</settings.redirectToResultPageAtFinal>
<settings.closed>
<TCEforms>
<label>LLL:EXT:fp_masterquiz/Resources/Private/Language/locallang_be.xlf:settings.closed</label>
Expand Down
1 change: 1 addition & 0 deletions Configuration/TypoScript/setup.typoscript
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ plugin.tx_fpmasterquiz {
showPageNo = 1
showQuestionNo = 0
showDetailedCategoryEval = 0
redirectToResultPageAtFinal = 0
highscoreLimit = 10
resultLimit = 20
checkAllStars = 0
Expand Down
5 changes: 4 additions & 1 deletion Documentation/ChangeLog/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,7 @@ ChangeLog
4.2:
Questions can now be closed too.

Bugfix for: prevent PHP and JavaScript errors from missing settings.
Bugfix for: prevent PHP and JavaScript errors from missing settings.

4.2.3:
Setting redirectToResultPageAtFinal added: redirect to the result page when the final page is reached?
1 change: 1 addition & 0 deletions Documentation/Configuration/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ showPoints boolean Show the possible/reached points if max
showPageNo boolean Show the page number / number of pages? 1
showQuestionNo boolean Show the question no. / no. of questions? 0
showDetailedCategoryEval boolean Show detailed category evaluation if available? 0
redirectToResultPageAtFinal boolean Redirect to the result page at the end? 0
checkAllStars boolean Check all stars on star rating by default? 0
highscoreLimit integer Number of entries in the highscore 10
resultLimit integer Number of entries in the result list (layout=2) 20
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# fp_masterquiz

version 4.2.2
version 4.2.3

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.

Expand Down Expand Up @@ -48,4 +48,7 @@ Changes in version 4.1:

Changes in version 4.2:
- Questions can now be closed too.
- Bugfix for: prevent PHP and JavaScript errors from missing settings.
- Bugfix for: prevent PHP and JavaScript errors from missing settings.

Changes in version 4.2.3:
- Setting redirectToResultPageAtFinal added: redirect to the result page when the final page is reached?
4 changes: 4 additions & 0 deletions Resources/Private/Language/de.locallang_be.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@
<source>Enable a form check (of mandatory questions) via PHP?</source>
<target>Fragen-Check auch via PHP einschalten?</target>
</trans-unit>
<trans-unit id="settings.redirectToResultPageAtFinal" resname="settings.redirectToResultPageAtFinal">
<source>Redirect to the result page when the end/final page is reached?</source>
<target>Gehe zur Ergebnis-Seite, wenn das Ende/Schlussseite erreicht ist?</target>
</trans-unit>
<trans-unit id="settings.allowEdit" resname="settings.allowEdit">
<source>Allow edit answered questions (works only for show by tag)?</source>
<target>Erlaube es, Antworten zu editieren (funktioniert nur bei &quot;Fragen nach Tag sortieren&quot;)?</target>
Expand Down
5 changes: 4 additions & 1 deletion Resources/Private/Language/locallang_be.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,14 @@
<source>Show detailed category evaluation if categories are used?</source>
</trans-unit>
<trans-unit id="settings.noFormCheck" resname="settings.noFormCheck">
<source>Disable form check (set all questions as non mandatory)?</source>
<source>Disable form check (set all questions as not mandatory)?</source>
</trans-unit>
<trans-unit id="settings.phpFormCheck" resname="settings.phpFormCheck">
<source>Enable a form check (of mandatory questions) via PHP?</source>
</trans-unit>
<trans-unit id="settings.redirectToResultPageAtFinal" resname="settings.redirectToResultPageAtFinal">
<source>Redirect to the result page when the end/final page is reached?</source>
</trans-unit>
<trans-unit id="settings.allowEdit" resname="settings.allowEdit">
<source>Allow edit answered questions (works only for show by tag)?</source>
</trans-unit>
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.2.2',
'version' => '4.2.3',
'constraints' => [
'depends' => [
'typo3' => '12.4.0-12.4.99',
Expand Down

0 comments on commit 80cb029

Please sign in to comment.