Project

General

Profile

Actions

Bug #97092

open

DataHandler creates invalid sys_file_reference row

Added by Christian Kuhn over 2 years ago. Updated over 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 #1

Updated by Christian Kuhn over 2 years ago

  • Description updated (diff)
Actions #2

Updated by Oliver Hader over 2 years ago

  • Category set to DataHandler aka TCEmain
Actions #3

Updated by Dennis Prinse over 1 year ago

We're experiencing this same issue at one of our TYPO3 v11 installations. Indeed, when adding file references on page translations while the 'Value of default language' radio has been selected, a wrong file reference is being created.

However, when selecting the 'Custom value' radio, the file reference is being created correctly and persists after save and reload.

There is no setting or possibility to override this localization state selector to force one of the options for a specific field. Now we have to keep in mind to manually select the 'Custom behaviour' when adding a file reference on a page translation.

Actions

Also available in: Atom PDF