Skip to content

Commit

Permalink
DEV: Fixed editquestion missing var (#1071)
Browse files Browse the repository at this point in the history
  • Loading branch information
TonisOrmisson committed May 11, 2018
1 parent 9a797c9 commit 5003d4e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions application/views/admin/survey/Question/editQuestion_view.php
Expand Up @@ -2,6 +2,7 @@
/* @var $this AdminController */
/* @var QuestionGroup $oQuestionGroup */
/* @var Survey $oSurvey */
/* @var Question $oQuestion */

// DO NOT REMOVE This is for automated testing to validate we see that page
echo viewHelper::getViewTestTag('addQuestion');
Expand Down Expand Up @@ -207,8 +208,8 @@
}
?>
</select>
<?php elseif($activated == "Y") : ?>
<input type="hidden" id="question_type" name="type" value="<?php echo $eqrow['type']; ?>" />
<?php elseif($oSurvey->isActive) : ?>
<input type="hidden" id="question_type" name="type" value="<?php echo $oQuestion->type; ?>" />
<!-- TODO : control if we can remove, disable update type must be done by PHP -->
<label class=" control-label" for="question_type_button" title="<?php eT("Question type");?>">
<?php
Expand Down

0 comments on commit 5003d4e

Please sign in to comment.