Skip to content

Commit

Permalink
fix case
Browse files Browse the repository at this point in the history
  • Loading branch information
TonisOrmisson committed Jan 6, 2018
1 parent 3b7f939 commit a27a15e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/models/Participant.php
Expand Up @@ -1462,7 +1462,7 @@ private function updateTokenFieldProperties($surveyId, array $mappedAttributes)
foreach ($mappedAttributes as $key => $iIDAttributeCPDB) {
if (is_numeric($iIDAttributeCPDB)) {
/* Update the attribute descriptions info */
$tokenAttributes = Survey::findOne($surveyId)->tokenattributes;
$tokenAttributes = Survey::findOne($surveyId)->tokenAttributes;
$tokenAttributes[$key]['cpdbmap'] = $iIDAttributeCPDB;
Yii::app()->db
->createCommand()
Expand Down Expand Up @@ -2019,7 +2019,7 @@ public function copyToCentral($surveyid, $aAttributesToBeCreated, $aMapped, $ove
}

if ($createautomap == "true") {
$aAttributes = Survey::findOne($surveyid)->tokenattributes;
$aAttributes = Survey::findOne($surveyid)->tokenAttributes;
if (!empty($aAttributesToBeCreated)) {
// If automapping is enabled then update the token field properties with the mapped CPDB field ID
foreach ($aAttributesToBeCreated as $tatt => $cpdbatt) {
Expand Down

0 comments on commit a27a15e

Please sign in to comment.