Skip to content

Commit

Permalink
Fixed issue: Notice when adding a survey participant
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Aug 24, 2016
1 parent 7866787 commit e676721
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion application/controllers/admin/tokens.php
Original file line number Diff line number Diff line change
Expand Up @@ -1752,7 +1752,7 @@ public function email($iSurveyId, $tokenids = null)
else
{
$aData['sidemenu']['state'] = false;

$this->_renderWrappedTemplate('token', array( 'message' => array(
'title' => gT("Warning"),
'message' => gT("There were no eligible emails to send. This will be because none satisfied the criteria of:")
Expand Down Expand Up @@ -2692,6 +2692,12 @@ public function _handletokenform($iSurveyId, $subaction, $iTokenId="", $ajax=fal
$aData['tokenid'] = $iTokenId;
$aData['tokendata'] = Token::model($iSurveyId)->findByPk($iTokenId);
}
else
{
$aData['completed']=null;
$aData['sent']=null;
$aData['remindersent']=null;
}

$thissurvey = getSurveyInfo($iSurveyId);
$aAdditionalAttributeFields = $thissurvey['attributedescriptions'];
Expand Down

0 comments on commit e676721

Please sign in to comment.