Skip to content

Commit

Permalink
fix sponsor scan export
Browse files Browse the repository at this point in the history
  • Loading branch information
cbellone committed May 6, 2016
1 parent 96050cd commit c7f1e8c
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@
import alfio.model.transaction.PaymentProxy;
import alfio.model.user.Organization;
import alfio.model.user.Role;
import alfio.repository.*;
import alfio.repository.DynamicFieldTemplateRepository;
import alfio.repository.SponsorScanRepository;
import alfio.repository.TicketCategoryDescriptionRepository;
import alfio.repository.TicketFieldRepository;
import alfio.util.ValidationResult;
import alfio.util.Validator;
import com.opencsv.CSVReader;
Expand Down Expand Up @@ -309,7 +312,7 @@ public void downloadSponsorScanExport(@PathVariable("eventName") String eventNam
.map(p -> {
DetailedScanData data = p.getLeft();
Map<String, String> descriptions = p.getRight();
return Pair.of(data, fields.stream().map(x -> descriptions.getOrDefault(x, "")).collect(Collectors.toList()));
return Pair.of(data, fields.stream().map(x -> descriptions.getOrDefault(x.getName(), "")).collect(Collectors.toList()));
}).map(p -> {
List<String> line = new ArrayList<>();
Ticket ticket = p.getLeft().getTicket();
Expand Down

0 comments on commit c7f1e8c

Please sign in to comment.