Project

General

Profile

Actions

Bug #88338

closed

Creating a file reference sorting not working

Added by varioous OG almost 5 years ago. Updated 3 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 #1

Updated by Oliver Bartsch 6 months ago

  • Status changed from New to Needs Feedback

Hi, I just checked this and was not able to reproduce. Could you please check again in the latest version, if this issue still exists for you?

Best, Oli.

Actions #2

Updated by Christian Kuhn 3 months ago

  • Status changed from Needs Feedback to Closed

Hey. I hope it's ok to close here for now. let's re-open in case we missed something.

Actions

Also available in: Atom PDF