From 6fd13300cb51a59688ce50a2dff088e8ba07ddc6 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 20 May 2020 18:28:04 -0400 Subject: [PATCH] Fix wrong variable name in Model\Attach - Prevented attachment data from being retrieved from storage --- src/Model/Attach.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Attach.php b/src/Model/Attach.php index 8d91f90e95..ad587e68bd 100644 --- a/src/Model/Attach.php +++ b/src/Model/Attach.php @@ -159,7 +159,7 @@ class Attach */ public static function getData($item) { - $backendClass = DI::storageManager()->getByName($photo['backend-class'] ?? ''); + $backendClass = DI::storageManager()->getByName($item['backend-class'] ?? ''); if ($backendClass === null) { // legacy data storage in 'data' column $i = self::selectFirst(['data'], ['id' => $item['id']]); -- 2.39.5