fix duplicate attachments multiple

This commit is contained in:
Yuri Kuznetsov
2020-11-16 13:35:53 +02:00
parent b5877ac32a
commit 39f2ec83d5
+4
View File
@@ -2550,6 +2550,10 @@ class Record implements Crud,
->getRepository('Attachment')
->getCopiedAttachment($attachment);
$attachment->set('field', $field);
$this->getEntityManager()->saveEntity($attachment);
if ($attachment) {
$idList[] = $attachment->id;
$nameHash->{$attachment->id} = $attachment->get('name');