Project

General

Profile

Actions

Bug #88338

closed

Creating a file reference sorting not working

Added by varioous OG over 5 years ago. Updated 11 months ago.

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

0%

Estimated time:
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

Actions

Also available in: Atom PDF