Bugfixes for LogEntryTypes refactoring (#4778)

This commit is contained in:
Mira
2025-01-24 16:19:55 +01:00
committed by GitHub
parent f014a9bbd3
commit ca8d253114
2 changed files with 4 additions and 4 deletions

View File

@@ -338,7 +338,7 @@ class CheckinErrorLogEntryType(OrderLogEntryType):
else:
data['list'] = _("(unknown)")
data['barcode'] = data.get('barcode')[:16]
data['barcode'] = data.get('barcode', '')[:16]
data['posid'] = logentry.parsed_data.get('positionid', '?')
if 'datetime' in data:
@@ -529,7 +529,7 @@ class VoucherRedeemedLogEntryType(VoucherLogEntryType):
})
return format_html(
self.plain,
order_code=format_html('<a href="{}">{}</a>', url, data('order_code', '?')),
order_code=format_html('<a href="{}">{}</a>', url, data.get('order_code', '?')),
)