Skip to content

Commit

Permalink
Version 3.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bihor committed Apr 20, 2023
1 parent 827f211 commit 0c87ac5
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 7 deletions.
3 changes: 1 addition & 2 deletions Classes/Controller/QuizController.php
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,6 @@ public function doAll(\Fixpunkt\FpMasterquiz\Domain\Model\Quiz $quiz, array $use

// Ausgewählte Antworten auswerten und speichern
if ($saveIt && !$reload && (!$completed || $this->settings['allowEdit'] == 2) && ($useJoker != 1)) {
echo "speichern";
// special preparation
if ($this->settings['email']['sendToAdmin'] && $this->settings['email']['specific']) {
$emailAnswers = json_decode($this->settings['email']['specific'], true);
Expand Down Expand Up @@ -1576,7 +1575,7 @@ public function showByTagAction(\Fixpunkt\FpMasterquiz\Domain\Model\Quiz $quiz)
// eigene Antworten setzen
foreach ($tagArray['questions'] as $question) {
$quid = $question->getUid();
if ($answeredQuestions[$quid]) {
if (isset($answeredQuestions[$quid])) {
if (is_array($answeredQuestions[$quid]['text'])) {
$question->setTextAnswers($answeredQuestions[$quid]['text']);
}
Expand Down
5 changes: 5 additions & 0 deletions Documentation/ChangeLog/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,8 @@ ChangeLog
allowEdit = 2 is new (allow edit even the status is completed).
Bugfix: delete old selections when they are replaced in the edit mode.
Bugfix: do not ignore changed user-data in edit mode.

3.7.1:
Absolute path to images in emails.
debug-echo removed.
PHP 8 bugfix.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# fp_masterquiz

version 3.7.0
version 3.7.1

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 @@ -30,3 +30,8 @@ Changes in version 3.7.0:
- allowEdit = 2 is new (allow edit even the status is completed).
- Bugfix: delete old selections when they are replaced in the edit mode.
- Bugfix: do not ignore changed user-data in edit mode.

Changes in version 3.7.1:
- Absolute path to images in emails.
- debug-echo removed.
- PHP 8 bugfix.
2 changes: 1 addition & 1 deletion Resources/Private/Partials/Question/PropertiesSent.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
</div>
<f:if condition="{selection.question.image.uid}">
<div class="{settings.template.colImage}">
<f:image src="{selection.question.image.uid}" treatIdAsReference="1" class="img-fluid" />
<f:image src="{selection.question.image.uid}" treatIdAsReference="1" class="img-fluid" absolute="{absolute}" />
</div>
</f:if>
</div>
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Templates/Email/ToAdmin.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h3>Hello Admin,</h3>
</f:if></f:if>
<f:format.raw>{finalContent}</f:format.raw>
<f:for each="{participant.selections}" as="selection" iteration="pageiterator">
<f:render partial="Question/PropertiesSent" arguments="{settings:settings, final:settings.email.likeFinalPage, isEmail:1, selection:selection, pageiterator:pageiterator}" />
<f:render partial="Question/PropertiesSent" arguments="{settings:settings, final:settings.email.likeFinalPage, isEmail:1, selection:selection, pageiterator:pageiterator, absolute:'true'}" />
</f:for>
</body>
</html>
2 changes: 1 addition & 1 deletion Resources/Private/Templates/Email/ToUser.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h3>Hello {name},</h3>
</f:if></f:if>
<f:format.raw>{finalContent}</f:format.raw>
<f:for each="{participant.selections}" as="selection" iteration="pageiterator">
<f:render partial="Question/PropertiesSent" arguments="{settings:settings, final:settings.email.likeFinalPage, isEmail:1, selection:selection, pageiterator:pageiterator}" />
<f:render partial="Question/PropertiesSent" arguments="{settings:settings, final:settings.email.likeFinalPage, isEmail:1, selection:selection, pageiterator:pageiterator, absolute:'true'}" />
</f:for>
</body>
</html>
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' => '3.7.0',
'version' => '3.7.1',
'constraints' => [
'depends' => [
'typo3' => '10.4.6-11.5.99',
Expand Down

0 comments on commit 0c87ac5

Please sign in to comment.