Skip to content

Commit

Permalink
Fixed issue #6909: Incorrect group order while copying question
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Nov 23, 2012
1 parent c7ce924 commit 2dbc801
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion application/helpers/common_helper.php
Expand Up @@ -956,7 +956,7 @@ function getGroupList3($gid,$surveyid)

//$gidquery = "SELECT gid, group_name FROM ".db_table_name('groups')." WHERE sid=$surveyid AND language='{$s_lang}' ORDER BY group_order";

$gidresult = Groups::model()->findAllByAttributes(array('sid' => $surveyid, 'language' => $s_lang));
$gidresult = Groups::model()->findAllByAttributes(array('sid' => $surveyid, 'language' => $s_lang), array('order'=>'group_order'));

foreach ($gidresult as $gv)
{
Expand Down
1 change: 0 additions & 1 deletion application/views/admin/token/browse.php
Expand Up @@ -18,7 +18,6 @@
$langnames = implode(";", $lname);
// Build the columnNames for the extra attributes
// and, build the columnModel
$names = array_keys(getTokenFieldsAndNames($surveyid, true));
$attributes = getTokenFieldsAndNames($surveyid,true);
$uidNames=$columnNames=$aColumnHeader=array();
if (count($attributes) > 0)
Expand Down

0 comments on commit 2dbc801

Please sign in to comment.