Skip to content

Commit

Permalink
[BUGFIX] Wrong building of relations to system categories
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Francois Suter committed Apr 15, 2014
1 parent e61cfe0 commit a7fe857
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/Task/MigrateDamCategoryRelationsTask.php
Expand Up @@ -53,11 +53,11 @@ public function execute() {
$categoryRelations = $this->getCategoryRelationsWhereSysCategoryExists();
foreach ($categoryRelations as $categoryRelation) {
$insertData = array(
'uid_local' => $categoryRelation['sys_file_uid'],
'uid_foreign' => $categoryRelation['sys_category_uid'],
'uid_local' => $categoryRelation['sys_category_uid'],
'uid_foreign' => $categoryRelation['sys_file_uid'],
'sorting' => $categoryRelation['sorting'],
'sorting_foreign' => $categoryRelation['sorting_foreign'],
'tablenames' => 'sys_file',
'tablenames' => 'sys_file_metadata',
'fieldname' => 'categories'
);

Expand Down

0 comments on commit a7fe857

Please sign in to comment.