Skip to content

Commit

Permalink
Fixed issue #13517: Question adv settings are not updated after updat…
Browse files Browse the repository at this point in the history
…e of question type

Dev: with question type selector set to simple
Dev: double question_type id : broke JS and HTML
Dev: todo : review system to remove this uneeded Question Type
  • Loading branch information
Shnoulle committed Mar 29, 2018
1 parent 29d0a00 commit 2b72013
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions application/views/admin/survey/Question/editQuestion_view.php
Expand Up @@ -94,7 +94,7 @@
<div class="panel-title h4">
<a class="btn btn-default btn-xs hide-button hidden-xs opened handleAccordion">
<span class="fa fa-chevron-left"></span>
<span class="sr-only"><?php eT("Expand/Collapse");?></span>
<span class="sr-only"><?php eT("Expand/Collapse");?></span>
</a>
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapse-copy" aria-expanded="false" aria-controls="collapse-copy">
<?php eT("Copy options"); ?>
Expand Down Expand Up @@ -151,7 +151,7 @@
<div class="panel-title h4">
<a class="btn btn-default btn-xs hide-button hidden-xs opened handleAccordion">
<span class="fa fa-chevron-left"></span>
<span class="sr-only"><?php eT("Expand/Collapse");?></span>
<span class="sr-only"><?php eT("Expand/Collapse");?></span>
</a>
<a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapse-question" aria-expanded="true" aria-controls="collapse-question">
<?php eT("General options");?>
Expand All @@ -163,9 +163,8 @@
<div class="panel-body">
<!-- Question selector start -->
<div class="form-group">
<input type="hidden" id="question_type" name="type" value="<?php echo $eqrow['type']; ?>" />

<?php if( $activated != "Y" && isset($selectormodeclass) && $selectormodeclass != "none"): ?>
<input type="hidden" id="question_type" name="type" value="<?php echo $eqrow['type']; ?>" />
<label class=" control-label" for="question_type_button" title="<?php eT("Question type");?>">
<?php
eT("Question type:");
Expand Down Expand Up @@ -208,6 +207,8 @@
?>
</select>
<?php elseif($activated == "Y") : ?>
<input type="hidden" id="question_type" name="type" value="<?php echo $eqrow['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
eT("Question type:");
Expand Down

0 comments on commit 2b72013

Please sign in to comment.