Update HasAttachments.php

This commit is contained in:
2023-07-30 07:03:16 +10:00
committed by GitHub
parent a2384f4b35
commit 280d3e9043

View File

@@ -48,7 +48,7 @@ trait HasAttachments
}
$ids = array_map('trim', $ids);
$existingIds = $this->attachmentsGet()->pluck('media_id')->toArray();
$existingIds = $this->getAttachments()->pluck('media_id')->toArray();
$attachmentItems = [];
foreach ($ids as $id) {