Skip to content

Commit

Permalink
Fixed #4396: Unable to change order of groups after import
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@8936 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
mennodekker committed Jul 14, 2010
1 parent 9300814 commit c5a9d62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion admin/importgroup.php
Expand Up @@ -918,7 +918,8 @@ function XMLImportGroup($sFullFilepath, $newsid)
// Import group table ===================================================================================

$tablename=$dbprefix.'groups';
$newgrouporder=$connect->GetOne("SELECT MAX(group_order) AS maxqo FROM ".db_table_name('group')." WHERE sid=$newsid")+1;

$newgrouporder=$connect->GetOne("SELECT MAX(group_order) AS maxqo FROM ".db_table_name('groups')." WHERE sid=$newsid");
if (is_null($newgrouporder))
{
$newgrouporder=0;
Expand Down

0 comments on commit c5a9d62

Please sign in to comment.