Bug #88338

Creating a file reference sorting not working

Added by varioous OG 2 months ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2019-05-13
Due date:
% Done:

0%

TYPO3 Version:
9
PHP Version:
7.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hi all,

if I create a file reference as described in the doc (https://docs.typo3.org/typo3cms/FileAbstractionLayerReference/8.7/UsingFal/Examples/FileFolder/Index.html#creating-a-file-reference) and I want to also add a sorting. I added:

 $data['sys_file_reference']['NEW' . $file->getUid()] = [
            'table_local' => 'sys_file',
            'uid_local' => $file->getUid(),
            'tablenames' => 'xxxxxx',
            'uid_foreign' => $xxxx->getUid(),
            'sorting_foreign' => $sorting,
            'pid' => $xxxx->getPid()
        ];

The field in the sys_file_reference is always 1. If I change the order afterwards in the backend the foreign_sorting field is correct.

Thanks and kind regards,
Harald

Also available in: Atom PDF