Skip to content

Commit a7fe857

Browse files
author
Francois Suter
committed
[BUGFIX] Wrong building of relations to system categories
The task that migrates the DAM category relations makes two critical mistakes: * the uid_local and uid_foreign fields are inverted (sys_category is local, sys_file is foreign) * the table with the categories relation is sys_file_metadata and not sys_file anymore.
1 parent e61cfe0 commit a7fe857

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Classes/Task/MigrateDamCategoryRelationsTask.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ public function execute() {
5353
$categoryRelations = $this->getCategoryRelationsWhereSysCategoryExists();
5454
foreach ($categoryRelations as $categoryRelation) {
5555
$insertData = array(
56-
'uid_local' => $categoryRelation['sys_file_uid'],
57-
'uid_foreign' => $categoryRelation['sys_category_uid'],
56+
'uid_local' => $categoryRelation['sys_category_uid'],
57+
'uid_foreign' => $categoryRelation['sys_file_uid'],
5858
'sorting' => $categoryRelation['sorting'],
5959
'sorting_foreign' => $categoryRelation['sorting_foreign'],
60-
'tablenames' => 'sys_file',
60+
'tablenames' => 'sys_file_metadata',
6161
'fieldname' => 'categories'
6262
);
6363

0 commit comments

Comments
 (0)