From 095c2f049696c62ad5fa51227021e70a13d4f1d7 Mon Sep 17 00:00:00 2001 From: Jacob Sanford Date: Tue, 25 Jun 2024 09:15:30 -0300 Subject: [PATCH] NBNP-448 Load file by id(), not uri() --- .../newspapers_core/src/PageStorageMigration2024Helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom/modules/newspapers_core/src/PageStorageMigration2024Helper.php b/custom/modules/newspapers_core/src/PageStorageMigration2024Helper.php index 2f43e28b..10eb7c9e 100644 --- a/custom/modules/newspapers_core/src/PageStorageMigration2024Helper.php +++ b/custom/modules/newspapers_core/src/PageStorageMigration2024Helper.php @@ -204,7 +204,7 @@ public static function getPagesNeedingToMove($limit = 50) { $file = \Drupal\file\Entity\File::load($fid); $page = \Drupal::entityTypeManager() ->getStorage('digital_serial_page') - ->loadByProperties(['page_image' => $file->getFileUri()]); + ->loadByProperties(['page_image' => $file->id()]); if ($page != NULL) { $pages[] = $page; }