Skip to content

Commit

Permalink
Fixed issue #6951: Cannot add quota to survey
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Nov 25, 2012
1 parent 79520d2 commit 80a7eb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/admin/quotas.php
Expand Up @@ -178,7 +178,7 @@ function insertquota($iSurveyId)
$oQuota->action = Yii::app()->request->getPost('quota_action');
$oQuota->autoload_url = Yii::app()->request->getPost('autoload_url');
$oQuota->save();
$iQuotaId = Yii::app()->db->lastInsertID;
$iQuotaId = $oQuota->id;

//Iterate through each language, and make sure there is a quota message for it
$sError = '';
Expand Down

0 comments on commit 80a7eb8

Please sign in to comment.