Merge pull request #8670 from MrPetovan/bug/8626-attach-empty-data

Fix wrong variable name in Model\Attach
This commit is contained in:
Tobias Diekershoff 2020-05-21 10:42:27 +02:00 committed by GitHub
commit 23894d820d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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