Skip to content

Commit

Permalink
Fixed #2798 part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Jul 14, 2019
1 parent c251a7a commit ef2327f
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 @@ -20,6 +20,7 @@
- Fixed a bug where it wasn’t possible to set test-specific config settings. ([#4539](https://github.com/craftcms/cms/pull/4539))
- Fixed an error that occurred when exporting elements if Limit was set to `0`. ([#4547](https://github.com/craftcms/cms/issues/4547))
- Fixed a bug where the `{% paginate %}` tag wouldn’t generate links to the first page correctly when using query string pagination. ([#4550](https://github.com/craftcms/cms/issues/4550))
- Fixed an error that occurred when indexing assets from a console request, if no volumes were defined yet. ([#2798](https://github.com/craftcms/cms/issues/2798))

## 3.2.1 - 2019-07-11

Expand Down
2 changes: 1 addition & 1 deletion src/services/AssetIndexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ public function getMissingFiles(string $sessionId): array
->column();

// What if there were no files at all?
if (empty($volumeIds)) {
if (empty($volumeIds) && !Craft::$app->getRequest()->getIsConsoleRequest()) {
$volumeIds = Craft::$app->getSession()->get('assetsVolumesBeingIndexed');
}

Expand Down

0 comments on commit ef2327f

Please sign in to comment.