Project

General

Profile

Actions

Task #89930

closed

[BUGFIX] Only last postProcContent-hook is applied

Added by Forger Service almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2019-12-12
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

postProcContent-hooks are used to update page content before it is sent
to the browser, e.g. by processing extra item markers.
When a hook is called, the current page content is passed as parameter
$_params and the modified content is returned by the hook.
Unfortunately the $_params-object is not updated in the loop which
calls all hooks. Each hook is called with the initial page content, and
only the return value of the last hook is returned as the overall
result (i.e. final page content).

This change updates the $_params-object in each iteration, so each hook-
function is called with the updated content of the previous hook. This
ensures that the modifications of all hooks are applied and not only
the modifications of the last hook.

This issue was automatically created from https://github.com/TYPO3/TYPO3.CMS/pull/221


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #89679: postProcContent hooks in felogin override each otherClosed2019-11-14

Actions
Actions

Also available in: Atom PDF