Skip to content

Commit

Permalink
Fixed issue #10962: adding answer to quota seems odd
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Apr 18, 2016
1 parent f187d80 commit 673dee3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion application/controllers/admin/quotas.php
Expand Up @@ -422,6 +422,9 @@ function editquota($iSurveyId)
$this->_renderWrappedTemplate('quotas', $aViewUrls, $aData);
}

/**
* Add new answer to quota
*/
function new_answer($iSurveyId, $sSubAction = 'new_answer')
{
$iSurveyId = sanitize_int($iSurveyId);
Expand Down Expand Up @@ -475,8 +478,8 @@ function new_answer($iSurveyId, $sSubAction = 'new_answer')
$aData['sidemenu']['state'] = false;
$surveyinfo = Survey::model()->findByPk($iSurveyId)->surveyinfo;
$aData['title_bar']['title'] = $surveyinfo['surveyls_title']."(".gT("ID").":".$iSurveyId.")";
$aData['surveybar']['savebutton']['form'] = 'frmeditgroup';
$aData['surveybar']['closebutton']['url'] = 'admin/quotas/sa/index/surveyid/'.$iSurveyId; // Close button
$aData['surveybar']['closebutton']['forbidden'][] = 'new_answer';

$this->_renderWrappedTemplate('quotas', $aViewUrls, $aData);
}
Expand Down

0 comments on commit 673dee3

Please sign in to comment.