restore Character answres for all Questtypes if Character has not already solved the Quest
This commit is contained in:
parent
d4c127d4dd
commit
aba2100fb3
6 changed files with 11 additions and 9 deletions
|
|
@ -181,7 +181,7 @@
|
|||
$maxY = 0;
|
||||
foreach($words as $index => &$word)
|
||||
{
|
||||
if($this->request->getGetParam('show-answer') == 'true') {
|
||||
if($this->request->getGetParam('show-answer') == 'true' || !$this->Quests->hasCharacterSolvedQuest($quest['id'], $character['id'])) {
|
||||
$word['answer'] = $this->Crossword->getCharacterSubmission($word['id'], $character['id']);
|
||||
}
|
||||
// Insert word
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue