Skip to content

Commit

Permalink
Fixed issue #18498: Questions with custom themes not shown on questio…
Browse files Browse the repository at this point in the history
…n list (#2744)

Co-authored-by: lapiudevgit <devgit@lapiu.biz>
  • Loading branch information
gabrieljenik and lapiudevgit committed Jan 11, 2023
1 parent c4ce8cd commit 5693f69
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions application/models/Question.php
Expand Up @@ -547,6 +547,7 @@ public function getQuestionList($surveyid)

/**
* @return string
* NOTE: Not used anymore. Based on a deprecated method. Should be deprecated.
*/
public function getTypedesc()
{
Expand Down Expand Up @@ -1017,7 +1018,7 @@ public function getQuestionListColumns()
'header' => gT('Question type'),
'name' => 'type',
'type' => 'raw',
'value' => '$data->typedesc',
'value' => '$data->question_theme->title . (YII_DEBUG ? " <em>{$data->type}</em>" : "")',
'htmlOptions' => array('class' => ''),
),

Expand Down Expand Up @@ -1100,7 +1101,7 @@ public function search()
$criteria->with = [
'group' => ['alias' => 'g'],
'questionl10ns' => ['alias' => 'ql10n', 'condition' => "language='" . $this->survey->language . "'"],
'question_theme' => ['alias' => 'qt', 'condition' => "extends=''"]
'question_theme' => ['alias' => 'qt']
];

if (!empty($this->title)) {
Expand Down

0 comments on commit 5693f69

Please sign in to comment.