Skip to content

Commit ea6d1b0

Browse files
committed
Merge branch 'handle-uploads-inside-relationships' of https://github.com/Laravel-Backpack/CRUD into handle-uploads-inside-relationships
2 parents 9aa264b + e227a4c commit ea6d1b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/Library/Uploaders/Support/RegisterUploadEvents.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ private function registerEvents(array|null $subfield = [], ?bool $registerModelE
4646
$attributes = $this->crudObject->getAttributes();
4747
$model = $attributes['model'] ?? get_class($this->crudObject->crud()->getModel());
4848
$uploader = $this->getUploader($attributes, $this->uploaderConfiguration);
49-
49+
5050
if (isset($attributes['relation_type']) && $attributes['entity'] !== false) {
5151
$uploader = $uploader->relationship(true);
5252
}

0 commit comments

Comments
 (0)