Merge pull request #3660 from emanuelschuetze/pdfAssignmentBallotFix

Fix for creating assignment ballot pdf.
This commit is contained in:
Emanuel Schütze 2018-03-19 15:26:59 +01:00 committed by GitHub
commit f9d178506a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -658,7 +658,7 @@ angular.module('OpenSlidesApp.assignments.pdf', ['OpenSlidesApp.core.pdf'])
var filename = gettextCatalog.getString('Ballot') + '_' + pollNumber + '_' + assignment.title + '.pdf';
BallotContentProvider.createInstance(assignment, thePoll, pollNumber).then(function (ballotContentProvider) {
var documentProvider = PdfMakeBallotPaperProvider.createInstance(ballotContentProvider);
PdfCreate.download(documentProvider.getDocument(), filename);
PdfCreate.download(documentProvider, filename);
});
},
};