Skip to content

Commit

Permalink
Fixed issue #7919: Uploading duplicate participants erases data
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Oct 7, 2013
1 parent fc4d848 commit c92bd22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/controllers/admin/participantsaction.php
Expand Up @@ -1319,9 +1319,9 @@ function uploadCSV()
foreach ($mappedarray as $attid => $attname) {
if (!empty($attname)) {
$bData = array('participant_id' => $aData,
'attribute_id' => $attid,
'value' => $writearray[$attname]);
Participant_attribute::model()->updateParticipantAttributeValue($bData);
'attribute_id' => $attid,
'value' => $writearray[strtolower($attname)]);
Participant_attribute::model()->updateParticipantAttributeValue($bData);
} else {
//If the value is empty, don't write the value
}
Expand Down

0 comments on commit c92bd22

Please sign in to comment.