From c4ee09d567f211c8233f6979b7c0c123d6aa5e42 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Wed, 15 Aug 2018 09:40:17 +0200 Subject: [PATCH] Ignore action URL parameter for tile links Else every tile opens with the action for the current tile. --- library/Businessprocess/Renderer/Renderer.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/library/Businessprocess/Renderer/Renderer.php b/library/Businessprocess/Renderer/Renderer.php index 91f9f4d..8231ce5 100644 --- a/library/Businessprocess/Renderer/Renderer.php +++ b/library/Businessprocess/Renderer/Renderer.php @@ -219,13 +219,14 @@ abstract class Renderer extends Html public function setUrl(Url $url) { $this->url = $url->without(array( + 'action', 'deletenode', 'deleteparent', 'editnode', 'simulationnode', 'view' )); - $this->setBaseUrl($url); + $this->setBaseUrl($this->url); return $this; } @@ -233,9 +234,9 @@ abstract class Renderer extends Html * @param Url $url * @return $this */ - public function setBaseUrl(Url $url) + protected function setBaseUrl(Url $url) { - $this->baseUrl = $url->without(array('node', 'path', 'view')); + $this->baseUrl = $url->without(array('node', 'path')); return $this; }