Skip to content
This repository has been archived by the owner on Nov 16, 2021. It is now read-only.

Update FileUpload.php #358

Open
wants to merge 1 commit into
base: 8.x-2.x
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ public function submit(array &$element, array &$form, FormStateInterface $form_s
$entity,
MediaHelper::getSourceField($entity)->entity
);
$file->setPermanent();
$file->save();
//$file->setPermanent();
Copy link
Collaborator

@phenaproxima phenaproxima May 10, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't merge this with unexplained, commented-out code in there. If this makes it work (and apparently it still passes the tests, so hey, alright!), then we need a comment here explaining why the file is not saved.

//$file->save();
$entity->save();

$selection = [
Expand Down