Update HasAttachments.php
This commit is contained in:
@@ -48,7 +48,7 @@ trait HasAttachments
|
|||||||
}
|
}
|
||||||
|
|
||||||
$ids = array_map('trim', $ids);
|
$ids = array_map('trim', $ids);
|
||||||
$existingIds = $this->attachmentsGet()->pluck('media_id')->toArray();
|
$existingIds = $this->getAttachments()->pluck('media_id')->toArray();
|
||||||
|
|
||||||
$attachmentItems = [];
|
$attachmentItems = [];
|
||||||
foreach ($ids as $id) {
|
foreach ($ids as $id) {
|
||||||
|
|||||||
Reference in New Issue
Block a user