Skip to content

Commit

Permalink
Fixing file storage location bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
aembler committed Nov 25, 2014
1 parent 98d004d commit 04c95ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Expand Up @@ -95,6 +95,7 @@ public function update()
if (!$fsl->isDefault()) {
$fsl->setIsDefault($request->request->get('fslIsDefault'));
}
$fsl->setConfigurationObject($configuration);
$fsl->save();
$this->redirect('/dashboard/system/files/storage', 'storage_location_updated');
}
Expand Down
2 changes: 1 addition & 1 deletion web/concrete/src/File/File.php
Expand Up @@ -208,7 +208,7 @@ public function setFileStorageLocation(StorageLocation $newLocation)
$currentFilesystem->delete($fh->prefix($fv->getPrefix(), $fv->getFilename()));
}

$this->location = $newLocation;
$this->storageLocation = $newLocation;
$this->save();
}

Expand Down

1 comment on commit 04c95ac

@Mnkras
Copy link
Contributor

@Mnkras Mnkras commented on 04c95ac Nov 26, 2014

Choose a reason for hiding this comment

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

@aembler do you think there should be any form of upgrade/migration? Right now if there were any files that were changed to a different storage location the files were moved but the DB wasn't updated...

Please sign in to comment.