Skip to content

Commit

Permalink
Fixed issue #13987: Bug after try adding multiple token attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikvitt committed Sep 6, 2018
1 parent c501859 commit 9e1222c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/admin/tokens.php
Expand Up @@ -1096,7 +1096,7 @@ public function updatetokenattributes($iSurveyId)
$i++;
}
$tokenattributefieldnames[] = 'attribute_'.$i;
Yii::app()->db->createCommand(Yii::app()->db->getSchema()->addColumn("{{tokens_".intval($iSurveyId)."}}", 'attribute_'.$i, 'string(255)'))->execute();
Yii::app()->db->createCommand(Yii::app()->db->getSchema()->addColumn("{{tokens_".intval($iSurveyId)."}}", 'attribute_'.$i, 'text'))->execute();
}

Yii::app()->db->schema->getTable($oSurvey->tokensTableName, true); // Refresh schema cache just in case the table existed in the past
Expand Down

0 comments on commit 9e1222c

Please sign in to comment.