From 5b37b37a7808d32a06f42dc6a89c513ae2bfc1c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Fri, 30 Oct 2026 08:11:37 +0100 Subject: [PATCH] fix: event price table no longer shows "0" for missing room types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Every hotel row renders a column for each configured pax count (1–10), but most hotels only offer some of them. For a missing room type the "not available" branch ran and ep:price() turned the null price into a struck-through "0". The nested f:if there repeated the outer condition and so never filtered anything. Cells now only show a struck-through price when the room has one, and stay empty otherwise. The bug already existed on TYPO3 10. Co-Authored-By: Claude Opus 5.5 --- .../Private/Templates/AjaxTable/EventPricetable.html | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/ep_theme/Resources/Private/Templates/AjaxTable/EventPricetable.html b/packages/ep_theme/Resources/Private/Templates/AjaxTable/EventPricetable.html index e4c112c..19179b7 100644 --- a/packages/ep_theme/Resources/Private/Templates/AjaxTable/EventPricetable.html +++ b/packages/ep_theme/Resources/Private/Templates/AjaxTable/EventPricetable.html @@ -65,12 +65,8 @@ {f:if(condition: '{row.rooms.{type}.undersubscription}', then: '*')} - - - - {row.rooms.{type}.price -> ep:price()} - - + + {row.rooms.{type}.price -> ep:price()}