Skip to content

Commit

Permalink
Dev: fixed issue : mailstatus is not set to OK if empty, same for lan…
Browse files Browse the repository at this point in the history
…guage

Dev: usesleft not needed : already in SQL default
  • Loading branch information
Shnoulle committed Apr 5, 2014
1 parent 7a7bf29 commit e590943
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions application/controllers/admin/tokens.php
Expand Up @@ -2086,6 +2086,10 @@ function import($iSurveyId)
//if(in_array($key,$oToken->attributes)) Not needed because we filter attributes before
$oToken->$key=$value;
}
// Some default value : to be moved to Token model rules in future release ?
// But think we have to accept invalid email etc ... then use specific scenario
$writearray['emailstatus']=isset($writearray['emailstatus'])?$writearray['emailstatus']:"OK";
$writearray['language']=isset($writearray['language'])?$writearray['language']:$sBaseLanguage;
$ir=$oToken->save();
if (!$ir)
{
Expand Down

0 comments on commit e590943

Please sign in to comment.