Skip to content

Commit

Permalink
Fixed #2798
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Apr 24, 2018
1 parent 0d7c452 commit 8bddea2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG-v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
- Fixed a bug where elements within relational fields could have two thumbnails. ([#2785](https://github.com/craftcms/cms/issues/2785))
- Fixed a bug where it was not possible to pass a `--table-prefix` argument to the `setup/db-creds` command. ([#2791](https://github.com/craftcms/cms/pull/2791))
- Fixed an error that occurred for users without permission to perform updates, if available update info wasn’t cached.
- Fixed an error that occurred when `craft\elements\Asset::sources()` was called in a console request. ([#2798](https://github.com/craftcms/cms/issues/2798))

## 3.0.3.1 - 2018-04-18

Expand Down
2 changes: 1 addition & 1 deletion src/elements/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ protected static function defineSources(string $context = null): array
$sourceList = self::_assembleSourceList($tree, $context !== 'settings');

// Add the customized temporary upload source
if ($context !== 'settings') {
if ($context !== 'settings' && !Craft::$app->getRequest()->getIsConsoleRequest()) {
$temporaryUploadFolder = Craft::$app->getAssets()->getCurrentUserTemporaryUploadFolder();
$temporaryUploadFolder->name = Craft::t('app', 'Temporary Uploads');
$sourceList[] = self::_assembleSourceInfoForFolder($temporaryUploadFolder, false);
Expand Down

0 comments on commit 8bddea2

Please # to comment.