Project

General

Profile

Actions

Bug #82881

closed

Story #69617: FormEngine bugs

Wrong page uid given to getDefaultUploadFolder for InlineControlContainer

Added by Torben Hansen over 6 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2017-10-29
Due date:
% Done:

100%

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

Description

When a user adds a media element to a page object, the function getDefaultUploadFolder should get the page UID of the current page as an argument instead of the UID of the parent page.

See: [[https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/backend/Classes/Form/Container/InlineControlContainer.php#L488]]

For all other scenarios (e.g. tt_content, extbase records with file relations), this works fine. Only for file relations on pages, the wrong PID is passed.

The page uid is only used in the hook $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauthgroup.php']['getDefaultUploadFolder']. The bug may lead to unexpected behaviour, if you want to configure the default upload folder on page uid basis.

Actions

Also available in: Atom PDF