Merge pull request #8670 from MrPetovan/bug/8626-attach-empty-data
Fix wrong variable name in Model\Attach
This commit is contained in:
commit
23894d820d
|
@ -159,7 +159,7 @@ class Attach
|
||||||
*/
|
*/
|
||||||
public static function getData($item)
|
public static function getData($item)
|
||||||
{
|
{
|
||||||
$backendClass = DI::storageManager()->getByName($photo['backend-class'] ?? '');
|
$backendClass = DI::storageManager()->getByName($item['backend-class'] ?? '');
|
||||||
if ($backendClass === null) {
|
if ($backendClass === null) {
|
||||||
// legacy data storage in 'data' column
|
// legacy data storage in 'data' column
|
||||||
$i = self::selectFirst(['data'], ['id' => $item['id']]);
|
$i = self::selectFirst(['data'], ['id' => $item['id']]);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user