Skip to content

Commit

Permalink
Add note
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Apr 8, 2021
1 parent 4c0a209 commit f3a5cdf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions application/models/LSActiveRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ public function decryptEncryptAttributes($action = 'decrypt')
$sodium = Yii::app()->sodium;

$class = get_class($this);
// TODO: Use OOP polymorphism instead of switching on class names.
if ($class === 'ParticipantAttribute') {
$aParticipantAttributes = CHtml::listData(ParticipantAttributeName::model()->findAll(["select" => "attribute_id", "condition" => "encrypted = 'Y' and core_attribute <> 'Y'"]), 'attribute_id', '');
foreach ($aParticipantAttributes as $attribute => $value) {
Expand Down

0 comments on commit f3a5cdf

Please sign in to comment.