Skip to content

Commit 34b441d

Browse files
committed
Apply correct sort order
1 parent 2cbe0f0 commit 34b441d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

app/code/Magento/MediaGalleryUi/Model/UpdateAsset.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,18 @@ public function execute(int $id, MetadataInterface $data): void
7676

7777
$updatedAsset = $this->assetFactory->create(
7878
[
79+
'id' => $asset->getId(),
7980
'path' => $asset->getPath(),
80-
'contentType' => $asset->getContentType(),
81+
'title' => $data->getTitle() ?? $asset->getTitle(),
82+
'description' => $data->getDescription() ?? $asset->getDescription(),
83+
'createdAt' => $asset->getCreatedAt(),
84+
'updatedAt' => $asset->getUpdatedAt(),
8185
'width' => $asset->getWidth(),
8286
'height' => $asset->getHeight(),
8387
'size' => $asset->getSize(),
84-
'id' => $asset->getId(),
85-
'title' => $data->getTitle() ?? $asset->getTitle(),
86-
'description' => $data->getDescription() ?? $asset->getDescription(),
87-
'source' => $asset->getSource(),
8888
'hash' => $asset->getHash(),
89-
'createdAt' => $asset->getCreatedAt(),
90-
'updatedAt' => $asset->getUpdatedAt()
89+
'contentType' => $asset->getContentType(),
90+
'source' => $asset->getSource()
9191
]
9292
);
9393

0 commit comments

Comments
 (0)