Skip to content

Commit

Permalink
Dev: Fix bug with save blacklisted
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Sep 27, 2016
1 parent 430d6bf commit ffb65ec
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions application/controllers/admin/participantsaction.php
Expand Up @@ -550,13 +550,11 @@ public function editParticipant()

$aData = Yii::app()->request->getPost('Participant');

if (isset($aData['blacklisted'])) {
if ($aData['blacklisted'] == 'on') {
$aData['blacklisted'] = 'Y';
}
else {
$aData['blacklisted'] = 'N';
}
if (isset($aData['blacklisted']) && $aData['blacklisted'] == 'on') {
$aData['blacklisted'] = 'Y';
}
else {
$aData['blacklisted'] = 'N';
}

$extraAttributes = Yii::app()->request->getPost('Attributes');
Expand Down

0 comments on commit ffb65ec

Please sign in to comment.