Skip to content

Commit

Permalink
Update Document DataTables provider:
Browse files Browse the repository at this point in the history
- use Kernel event listener to correctly return URL
  • Loading branch information
webeweb committed Jun 11, 2020
1 parent 1a09d4a commit b5a1307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Provider/DataTables/DocumentDataTablesProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function getUrl() {
return $this->getRouter()->generate("wbw_edm_document_index");
}

$id = $this->getKernelEventListener()->getRequest()->attributes->get("_forward", new ParameterBag())->get("id");
$id = $this->getKernelEventListener()->getRequest()->attributes->get("_forwarded", new ParameterBag())->get("id");

$parameters = null === $id ? [] : ["id" => $id];

Expand Down

0 comments on commit b5a1307

Please sign in to comment.