Project

General

Profile

Actions

Bug #97092

open

DataHandler creates invalid sys_file_reference row

Added by Christian Kuhn over 2 years ago. Updated about 1 year ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
DataHandler aka TCEmain
Target version:
-
Start date:
2022-03-03
Due date:
% Done:

0%

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

Description

Scenario:
  • Create a page
  • Add an image to "Resources" media field of the page
  • Localize the page to some language, the image will be localized, too.
  • In the page localization record, "Translation behavior" "Value of default language" is selected, but the buttons to add further images are still shown. Add another image and save.

-> After save, the image is gone again. Most likely due to "Value of default language" translation behavior". That's fine.

But: A sys_file_reference record is created. And that one is broken since it has 'uid_foreign' set to 0, and empty values for 'tablenames' and 'fieldname'. This should not happen. I guess, the check for the translation behavior needs to happen earlier in DH to suppress the record creation?

Actions

Also available in: Atom PDF