Skip to content

Commit

Permalink
Fixed issue #18793: Quick Translation crash with MS SQL Database Error (
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieljenik committed Jun 15, 2023
1 parent 09e4799 commit 6dd9385
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/models/services/QuickTranslation.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ public function getSubquestionTranslations($baselang)
public function getAnswerTranslations($baselang)
{
return Answer::model()
->resetScope()
->with('answerl10ns', [
'condition' => 'language =:baselang ',
'params' => [':baselang' => $baselang]])
Expand All @@ -391,7 +392,7 @@ public function getAnswerTranslations($baselang)
->findAllByAttributes(
[],
[
'order' => 'group_order, question.question_order, t.scale_id, t.sortorder',
'order' => 'group_order, question.question_order, t.scale_id, t.sortorder, t.code',
'condition' => 'question.sid=:sid',
'params' => array(':sid' => $this->survey->sid)
]
Expand Down

0 comments on commit 6dd9385

Please sign in to comment.