Fix wrong variable name in Model\Attach

- Prevented attachment data from being retrieved from storage
This commit is contained in:
Hypolite Petovan 2020-05-20 18:28:04 -04:00
parent 95da30f395
commit 6fd13300cb
1 changed files with 1 additions and 1 deletions

View File

@ -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']]);