Skip to content

Commit

Permalink
Fixed issue #15939: Update to 4x seems to have changed the Display/Ex…
Browse files Browse the repository at this point in the history
…port (#1503)

Adding group order criteria.
  • Loading branch information
gabrieljenik committed Aug 10, 2020
1 parent 83bbfda commit fdd72ed
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions application/controllers/admin/printablesurvey.php
Expand Up @@ -108,8 +108,11 @@ function index($surveyid, $lang = null, $bReturn = false)
// foreach ($aCssFiles as $cssFile) {
// Yii::app()->getClientScript()->registerCssFile("{$sFullTemplateUrl}{$cssFile}");
// }

$arGroups = QuestionGroup::model()->findAllByAttributes(['sid' => $surveyid]); //xiao,
$oGroupsCriteria = new CDbCriteria();
$oGroupsCriteria->condition = "sid = :sid";
$oGroupsCriteria->params = array(':sid' => $surveyid);
$oGroupsCriteria->order = "group_order";
$arGroups = QuestionGroup::model()->findAll($oGroupsCriteria); //xiao,
if (!isset($surveyfaxto) || !$surveyfaxto and isset($surveyfaxnumber)) {
$surveyfaxto = $surveyfaxnumber; //Use system fax number if none is set in survey.
}
Expand Down

0 comments on commit fdd72ed

Please sign in to comment.