fix: event price table no longer shows "0" for missing room types
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 <[email protected]>
This commit is contained in:
1 parent
ab2b840dc5
commit
5b37b37a78
1 file changed
+1
-5
@@ -65,14 +65,10 @@
|
|||||||
{f:if(condition: '{row.rooms.{type}.undersubscription}', then: '*')}
|
{f:if(condition: '{row.rooms.{type}.undersubscription}', then: '*')}
|
||||||
</f:link.typolink>
|
</f:link.typolink>
|
||||||
</f:then>
|
</f:then>
|
||||||
<f:else>
|
<f:else if="{row.rooms.{type}.price}">
|
||||||
<f:if condition="{row.rooms.{type}.available}">
|
|
||||||
<f:else>
|
|
||||||
<span class="line-through text-zinc-500">{row.rooms.{type}.price -> ep:price()}</span>
|
<span class="line-through text-zinc-500">{row.rooms.{type}.price -> ep:price()}</span>
|
||||||
</f:else>
|
</f:else>
|
||||||
</f:if>
|
</f:if>
|
||||||
</f:else>
|
|
||||||
</f:if>
|
|
||||||
</td>
|
</td>
|
||||||
</f:for>
|
</f:for>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Reference in new issue
Block a user