|
|
@ -383,7 +383,7 @@ class MediaSourceService { |
|
|
|
$this->updateFile($file, $resource, $mimetype); |
|
|
|
$this->updateFile($file, $resource, $mimetype); |
|
|
|
$file->save(); |
|
|
|
$file->save(); |
|
|
|
|
|
|
|
|
|
|
|
// Update the media |
|
|
|
// Update the media. |
|
|
|
$media->{$destination_field}->setValue([ |
|
|
|
$media->{$destination_field}->setValue([ |
|
|
|
'target_id' => $file->id(), |
|
|
|
'target_id' => $file->id(), |
|
|
|
]); |
|
|
|
]); |
|
|
@ -393,4 +393,5 @@ class MediaSourceService { |
|
|
|
throw new BadRequestHttpException("Media does not have destination field $destination_field"); |
|
|
|
throw new BadRequestHttpException("Media does not have destination field $destination_field"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|