Project

General

Profile

Actions

Bug #83299

closed

Do not register tree component before it's fully initialized

Added by Tymoteusz Motylewski over 6 years ago. Updated over 5 years ago.

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

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Registration of the navigation component inside pagetreeElement.js needs to be moved inside done callback of the ajax action (after tree.initialize is called).

This will prevent issues like:

SyntaxError: Unexpected token < in JSON at position 0
    at JSON.parse (<anonymous>)
    at Object.<anonymous>

thrown e.g. when undeleting a page from recycler.

Actions

Also available in: Atom PDF