Skip to content

Commit

Permalink
Fixed issue #6671: Impossible to import correctly a group of question
Browse files Browse the repository at this point in the history
Fixed issue #6695: Error when trying to create a new user group
  • Loading branch information
c-schmitz committed Oct 14, 2012
1 parent 7740e7b commit 4764610
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/helpers/common_helper.php
Expand Up @@ -6733,11 +6733,11 @@ function getLastInsertID($sTableName)
$sDBDriver=Yii::app()->db->getDriverName();
if ($sDBDriver=='mysql' || $sDBDriver=='mysqli')
{
return getLastInsertID();
return Yii::app()->db->getLastInsertID();
}
else
{
return getLastInsertID('{{groups}}');
return Yii::app()->db->getCommandBuilder()->getLastInsertID($sTableName);
}
}

Expand Down

0 comments on commit 4764610

Please sign in to comment.