Skip to content

Commit

Permalink
Dev: added file_valid_message to twig variables
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jan 16, 2017
1 parent 1d68e4f commit ac39d4a
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions application/helpers/SurveyRuntimeHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -458,13 +458,14 @@ public function run($surveyid,$args)
$thissurvey['aQuestion'] = $qa;

// easier to find for survey maker
$thissurvey['aQuestion']['qid'] = $qa[4];
$thissurvey['aQuestion']['code'] = $qa[5];
$thissurvey['aQuestion']['number'] = $qa[0]['number'];
$thissurvey['aQuestion']['text'] = $qa[0]['text'];
$thissurvey['aQuestion']['SGQ'] = $qa[7];
$thissurvey['aQuestion']['input_error_class'] = $qa[0]['input_error_class'];
$thissurvey['aQuestion']['valid_message'] = $qa[0]['valid_message'];
$thissurvey['aQuestion']['qid'] = $qa[4];
$thissurvey['aQuestion']['code'] = $qa[5];
$thissurvey['aQuestion']['number'] = $qa[0]['number'];
$thissurvey['aQuestion']['text'] = $qa[0]['text'];
$thissurvey['aQuestion']['SGQ'] = $qa[7];
$thissurvey['aQuestion']['input_error_class'] = $qa[0]['input_error_class'];
$thissurvey['aQuestion']['valid_message'] = $qa[0]['valid_message'];
$thissurvey['aQuestion']['file_valid_message'] = $qa[0]['file_valid_message'];

$question_template = file_get_contents($sTemplateViewPath.'question.twig');
// Fix old template : can we remove it ? Old template are surely already broken by another issue
Expand Down

0 comments on commit ac39d4a

Please sign in to comment.