Kephson / paste_reference

Paste reference instead of copy for content elements in TYPO3
MIT License
14 stars 18 forks source link

fix DataHandler signature #36

Closed saitho closed 1 month ago

saitho commented 1 month ago

Our client reported an issue when localizing files.

bilder

On the image above you can see an image relation of a translated content element with an image attached. The grey image below is the image that was assigned in the main language but was removed from the translation.

Using the right button the editor is able to make it available for the localization again. This however throws an error ("undefined" in JS due to PHP Exception in AJAX request), which is directly related to the method signatures of this extension's DataHandler hooks.

$value passed to the hook in this case is not a string but an array. For now I added "array" as type to fix the issue. Not sure what the correct type is, or if we just should leave it open.