Skip to content

Commit 38ca3b4

Browse files
committed
bug #6265 Fix creating Action back from DTO (dragosprotung)
This PR was merged into the 4.x branch. Discussion ---------- Fix creating Action back from DTO When creating the `Action` back from the DTO, the `url` is lost. Commits ------- eb030bb Add URL back from DTO when getting config object
2 parents 6eed1e0 + eb030bb commit 38ca3b4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Dto/ActionDto.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,10 @@ public function getAsConfigObject(): Action
399399
$action->linkToRoute($this->routeName, $this->routeParameters);
400400
}
401401

402+
if (null !== $this->url) {
403+
$action->linkToUrl($this->url);
404+
}
405+
402406
if (null !== $this->displayCallable) {
403407
$action->displayIf($this->displayCallable);
404408
}

0 commit comments

Comments
 (0)