Skip to content

Commit

Permalink
Fixed issue #6636: New token attributes not showing up in add new tok…
Browse files Browse the repository at this point in the history
…en page.
  • Loading branch information
c-schmitz committed Oct 4, 2012
1 parent a6d40f4 commit 0a33778
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions application/controllers/admin/tokens.php
Expand Up @@ -2305,6 +2305,13 @@ function _handletokenform($iSurveyId, $subaction, $iTokenId="")
$aData['attrfieldnames'][$sField]=$aData;
}
}
foreach ($aTokenFieldNames as $sTokenFieldName)
{
if (strpos($sTokenFieldName,'attribute_')===0 && (!isset($aData['attrfieldnames']) || !isset($aData['attrfieldnames'][$sTokenFieldName])))
{
$aData['attrfieldnames'][$sTokenFieldName]=array('description'=>$sTokenFieldName,'mandatory'=>'N');
}
}

$aData['thissurvey'] = $thissurvey;
$aData['surveyid'] = $iSurveyId;
Expand Down

0 comments on commit 0a33778

Please sign in to comment.