mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Let plugins prevent the download of individual tickets in an order (#3858)
* Let plugins allow/prevent the download of individual tickets in an order (#3836)
(extends the functionality of the allow_ticket_download signal)
(cherry picked from commit e20edab98f)
* fix bug where in some cases, only the first ticket could be downloaded
This commit is contained in:
@@ -115,7 +115,7 @@ class PdfTicketOutput(BaseTicketOutput):
|
||||
def generate_order(self, order: Order):
|
||||
merger = PdfWriter()
|
||||
with language(order.locale, self.event.settings.region):
|
||||
for op in order.positions_with_tickets:
|
||||
for op in self.get_tickets_to_print(order):
|
||||
layout = override_layout.send_chained(
|
||||
order.event, 'layout', orderposition=op, layout=self.layout_map.get(
|
||||
(op.item_id, self.override_channel or order.sales_channel),
|
||||
|
||||
Reference in New Issue
Block a user