fix attachment
This commit is contained in:
@@ -43,6 +43,10 @@ class Attachment extends Record
|
||||
|
||||
$entity = parent::createEntity($data);
|
||||
|
||||
if (!empty($data['file'])) {
|
||||
$entity->clear('contents');
|
||||
}
|
||||
|
||||
return $entity;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user