Skip to content

Commit

Permalink
Fixed issue: Question navigator not working
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Jan 11, 2018
1 parent fd8bcc0 commit d20e6f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion application/controllers/admin/surveyadmin.php
Expand Up @@ -465,7 +465,7 @@ public function getAjaxQuestionGroupArray($surveyid)
if (is_object($question)) {
$curQuestion = $question->attributes;
$curQuestion['link'] = $this->getController()->createUrl("admin/questions/sa/view", ['surveyid' => $surveyid, 'gid' => $group->gid, 'qid'=>$question->qid]);
$curQuestion['name_short'] = viewHelper::flatEllipsizeText($question->question, true, 20, '[...]', 1);
$curQuestion['question_flat'] = viewHelper::flatEllipsizeText($question->question, true);
$curGroup['questions'][] = $curQuestion;
}

Expand Down
Expand Up @@ -191,9 +191,9 @@ export default {
<ul class="list-group background-muted padding-left question-question-list" v-if="isActive(questiongroup.gid)" @drop="dropQuestion($event, question)">
<li v-for="question in orderQuestions(questiongroup.questions)" v-bind:key="question.qid" v-bind:class="questionItemClasses(question)" class="list-group-item question-question-list-item ls-flex-row align-itmes-flex-between" @dragenter="dragoverQuestion($event, question, questiongroup)">
<i class="fa fa-bars margin-right bigIcons dragPointer" draggable="true" @dragend="endDraggingQuestion($event, question)" @dragstart="startDraggingQuestion($event, question, questiongroup)">&nbsp;</i>
<a :href="question.link" class="col-12 pjax question-question-list-item-link" @click.prevent="openQuestion(question)" data-toggle="tootltip" :title="question.question">
<a :href="question.link" class="col-12 pjax question-question-list-item-link" @click.prevent="openQuestion(question)" data-toggle="tootltip" :title="question.question_flat">
<i>[{{question.title}}]</i>
<span class="question_text_ellipsize" :style="{ width: itemWidth }"> {{ question.question }} </span>
<span class="question_text_ellipsize" :style="{ width: itemWidth }"> {{ question.question_flat }} </span>
</a>
</li>
</ul>
Expand Down

0 comments on commit d20e6f4

Please sign in to comment.