Browse Source

Include `export`

pull/11385/head
brandonkelly 3 years ago
parent
commit
9a0e1e7937
No known key found for this signature in database GPG Key ID: 5E86D0CED64C7093
  1. 6
      src/controllers/ElementIndexesController.php

6
src/controllers/ElementIndexesController.php

@ -101,7 +101,11 @@ class ElementIndexesController extends BaseElementsController
$this->paginated = (bool)$this->request->getParam('paginated'); $this->paginated = (bool)$this->request->getParam('paginated');
$this->elementQuery = $this->elementQuery(); $this->elementQuery = $this->elementQuery();
if (in_array($action->id, ['get-elements', 'perform-action']) && $this->includeActions() && $this->sourceKey !== null) {
if (
in_array($action->id, ['get-elements', 'perform-action', 'export']) &&
$this->includeActions() &&
$this->sourceKey !== null
) {
$this->actions = $this->availableActions(); $this->actions = $this->availableActions();
$this->exporters = $this->availableExporters(); $this->exporters = $this->availableExporters();
} }

Loading…
Cancel
Save