diff --git a/Web/app.py b/Web/app.py index 0eac09b..9b50f3a 100755 --- a/Web/app.py +++ b/Web/app.py @@ -3826,11 +3826,14 @@ def api_item_detail(item_id): {f'
Ausgeliehen von: {html.escape(str(borrower_value))}
' if borrower_value and status_label == 'Ausgeliehen' else ''} {borrows_html} """ - + ctx = get_tenant_context() + current_tenant_id = ctx.tenant_id if ctx else None + client.close() return jsonify({ 'html': detail_html, - 'images': item.get('Images', item.get('Bilder', [])) + 'images': item.get('Images', item.get('Bilder', [])), + 'tenant': str(current_tenant_id) }), 200 except Exception as e: app.logger.error(f"Error fetching item detail: {e}") diff --git a/Web/templates/library_table.html b/Web/templates/library_table.html index 1825eac..c161568 100644 --- a/Web/templates/library_table.html +++ b/Web/templates/library_table.html @@ -1381,9 +1381,14 @@ : `/uploads/${image}`; return ` -