Skip to content

Commit

Permalink
DEV: changes for replacement fields not working (compared to LS3 ...)
Browse files Browse the repository at this point in the history
  • Loading branch information
Trischi80 authored and eddylackmann committed Mar 22, 2021
1 parent 6fa6bc7 commit 8273e8c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion application/controllers/LimereplacementfieldsController.php
Expand Up @@ -72,7 +72,9 @@ public function actionIndex()
$data['replacements'][gT('Survey format')] = $surveyformat;
}

$this->renderPartial('/admin/super/_renderJson', ['data' => $data]);
$data['replFields'] = $replacementFields;
//$this->renderPartial('/admin/super/_renderJson', ['data' => $data]);
$this->render('limeReplacementFields_view', $data);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions application/views/questionAdministration/textElements.php
Expand Up @@ -19,13 +19,13 @@
array('class'=>'form-control','cols'=>'60','rows'=>'8','id'=>"question_{$lang}")
); ?>
<?= getEditor(
"question_" . $lang,
'question-text',//"question_" . $lang, //this is important for LimereplacementfieldsController function getReplacementFields(...)!
"question_" . $lang,
"[".gT("Question:","js")."](".$lang.")",
$oSurvey->sid,
$question->gid ?? 0,
$question->qid ?? 0,
$action = '');
'editquestion');
?>
</div>
</div>
Expand Down

0 comments on commit 8273e8c

Please sign in to comment.