change of the last borrowing user displayment to correctly change the encryption to have the unencryptet name

This commit is contained in:
2026-10-20 17:46:51 +02:00
parent baefc55257
commit ddb6ab82ad
+1 -1
View File
@@ -4556,7 +4556,7 @@ def api_item_detail(item_id):
<p><strong>Kategorie:</strong> {html.escape(str(item.get('library_category', '-')))}</p>
<p><strong>Beschreibung:</strong> {html.escape(str(item.get('Beschreibung', '-')))}</p>
<p><strong>Status:</strong> {html.escape(str(status_label))}</p>
{f'<p><strong>Ausgeliehen von:</strong> {html.escape(str(borrower_value))}</p>' if borrower_value and status_label == 'Ausgeliehen' else ''}
{f'<p><strong>Ausgeliehen von:</strong> {html.escape(str(decrypt_text(borrower_value)))}</p>' if borrower_value and status_label == 'Ausgeliehen' else ''}
{borrows_html}
"""
ctx = get_tenant_context()