From 1ff374472d02f0e9378b7d528e35e2c855c6defd Mon Sep 17 00:00:00 2001 From: Torsten Oppermann <torsten@sgalinski.de> Date: Tue, 24 Jul 2018 17:48:05 +0200 Subject: [PATCH] [TASK] Fixing id bug when mapping images --- Classes/Command/MigrateNewsCommandController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Command/MigrateNewsCommandController.php b/Classes/Command/MigrateNewsCommandController.php index 68e8390..8be0cbc 100644 --- a/Classes/Command/MigrateNewsCommandController.php +++ b/Classes/Command/MigrateNewsCommandController.php @@ -223,7 +223,7 @@ class MigrateNewsCommandController extends CommandController { // match old page id with old file reference id /** @var DatabaseConnection $db */ $db = $GLOBALS['TYPO3_DB']; - $where = 'tablenames = "tx_news_domain_model_news" AND fieldname = "fal_media" AND uid_foreign = ' . $this->newsPagesMap[$row['uid']]; + $where = 'tablenames = "tx_news_domain_model_news" AND fieldname = "fal_media" AND uid_foreign = ' . $row['uid']; /** @var \mysqli_result $result */ $fileReferenceResult = $db->exec_SELECTgetSingleRow( 'uid, uid_local', 'sys_file_reference_news_migration', $where -- GitLab