Skip to content

Commit

Permalink
Fixed issue #16920: LimeReplacement Fields not working (#1739)
Browse files Browse the repository at this point in the history
Continuing previous work. Using renderPartial instead of render.
  • Loading branch information
gabrieljenik authored and eddylackmann committed Mar 22, 2021
1 parent 8273e8c commit f46f580
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions application/controllers/LimereplacementfieldsController.php
Expand Up @@ -60,21 +60,16 @@ public function actionIndex()

$data = [];
$data['countfields'] = count($replacementFields);
$data['replacements'] = [];

asort($replacementFields);
$data['replacements'][gt('General replacements')] = $replacementFields;

$data['replFields'] = $replacementFields;
if (isset($childQuestions)) {
$data['replacements'][gT('Questions')] = $childQuestions;
$data['cquestions'] = $childQuestions;
}
if (isset($surveyformat)) {
$data['replacements'][gT('Survey format')] = $surveyformat;
$data['surveyformat'] = $surveyformat;
}

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

/**
Expand Down

0 comments on commit f46f580

Please sign in to comment.