From 90c918595cf735ca6b576637d3b8b50189c48562 Mon Sep 17 00:00:00 2001 From: giles Date: Sat, 21 Feb 2026 09:43:06 +0000 Subject: [PATCH] Fix OOB cart-mini clearing cart icon when adjusting tickets The mini macro was imported without context, so cart_count was invisible to the macro. Pass count explicitly in _adjust_response.html and add 'with context' to _buy_result.html. Update shared submodule. Co-Authored-By: Claude Opus 4.6 --- templates/_types/tickets/_adjust_response.html | 2 +- templates/_types/tickets/_buy_result.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/_types/tickets/_adjust_response.html b/templates/_types/tickets/_adjust_response.html index fdbbe02..bdd90f6 100644 --- a/templates/_types/tickets/_adjust_response.html +++ b/templates/_types/tickets/_adjust_response.html @@ -1,4 +1,4 @@ {# Response for ticket adjust — buy form + OOB cart-mini update #} {% from '_types/cart/_mini.html' import mini %} -{{ mini(oob='true') }} +{{ mini(oob='true', count=cart_count) }} {% include '_types/tickets/_buy_form.html' %} diff --git a/templates/_types/tickets/_buy_result.html b/templates/_types/tickets/_buy_result.html index 9f1851e..ff71783 100644 --- a/templates/_types/tickets/_buy_result.html +++ b/templates/_types/tickets/_buy_result.html @@ -1,6 +1,6 @@ {# Shown after ticket purchase — replaces the buy form #} {# OOB: refresh cart badge to reflect new ticket count #} -{% from '_types/cart/_mini.html' import mini %} +{% from '_types/cart/_mini.html' import mini with context %} {{ mini(oob='true') }}