Commit 0a24d1e9 authored by Oliver Hader's avatar Oliver Hader Committed by Andreas Fernandez
Browse files

[BUGFIX] Avoid crash due to endless loop in Fluid-based Page Module

Page Module partial `PageLayout/Record/Preview` tries to render optional
`PageLayout/Record/{item.record.CType}/Preview` and falls back to a raw
representation if that custom partial does not exist.

In case `CType` is empty, this resolves to `PageLayout/Record//Preview`
which is actually using `PageLayout/Record/Preview.html` again - that's
the partial again that initiated the process - which will after some
seconds crash due to an endless loop of that partial.

In order to make things explicit, the defaults are now located in
their dedicated namespace `RecordDefault` to avoid ambiguity.

* `PageLayout/Record/Preview` -> `PageLayout/RecordDefault/Preview`
* `PageLayout/Record/Header` -> `PageLayout/RecordDefault/Header`
* `PageLayout/Record/Footer` -> `PageLayout/RecordDefault/Footer`

Resolves: #94343
Releases: 10.4, master
Change-Id: I0c0385a9d89561de2395fc81124e471ee9fed8dd

Tested-by: core-ci's avatarcore-ci <>
Tested-by: Benni Mack's avatarBenni Mack <>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <>
Reviewed-by: Benni Mack's avatarBenni Mack <>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <>
parent af49bb96
......@@ -2,16 +2,16 @@
<div class="t3-page-ce {item.wrapperClassName} t3js-page-ce t3js-page-ce-sortable" id="element-tt_content-{item.record.uid}" data-table="tt_content" data-uid="{item.record.uid}" data-language-uid="{item.record.sys_language_uid}" style="{style}">
<div class="t3-page-ce-dragitem" id="{item.uniqueId}">
<f:render partial="PageLayout/Record/{item.record.CType}/Header" arguments="{_all}" optional="1">
<f:render partial="PageLayout/Record/Header" arguments="{_all}" />
<f:render partial="PageLayout/RecordDefault/Header" arguments="{_all}" />
<div class="t3-page-ce-body">
<div class="t3-page-ce-body-inner">
<div class="{f:if(condition: item.versioned, then: 'ver-element')}">
<f:render partial="PageLayout/Record/Preview" arguments="{_all}" />
<f:render partial="PageLayout/RecordDefault/Preview" arguments="{_all}" />
<f:render partial="PageLayout/Record/{item.record.CType}/Footer" arguments="{_all}" optional="1">
<f:render partial="PageLayout/Record/Footer" arguments="{_all}" />
<f:render partial="PageLayout/RecordDefault/Footer" arguments="{_all}" />
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment