diff --git a/Asset/Javascript/GraphBuilder.js b/Asset/Javascript/GraphBuilder.js index 82b89f3..b85d3b7 100644 --- a/Asset/Javascript/GraphBuilder.js +++ b/Asset/Javascript/GraphBuilder.js @@ -25,7 +25,7 @@ $(document).ready(function() { network.on("selectNode", function (params) { if (params.nodes.length === 1) { var node = nodes.get(params.nodes[0]); - window.open(node.url, '_blank'); + window.open(decodeURIComponent(node.url), '_blank'); } }); }); diff --git a/Controller/Relationgraph.php b/Controller/Relationgraph.php index 5881d23..7087fb2 100644 --- a/Controller/Relationgraph.php +++ b/Controller/Relationgraph.php @@ -60,7 +60,7 @@ protected function traverseGraph(&$graph, $task) 'priority' => $task['priority'], 'assignee' => $task['assignee_name'] ?: $task['assignee_username'], 'color' => $this->colorModel->getColorProperties($task['color_id']), - 'url' => $this->helper->url->to('TaskViewController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) + 'url' => urlencode($this->helper->url->to('TaskViewController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']))) ]; } diff --git a/Makefile b/Makefile index 62752ef..6196d56 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ plugin=Relationgraph -version=0.3.0 +version=0.3.1 all: @ echo "Build archive for plugin ${plugin} version=${version}" diff --git a/Plugin.php b/Plugin.php index 0a4a253..9f272a8 100644 --- a/Plugin.php +++ b/Plugin.php @@ -30,7 +30,7 @@ public function getPluginAuthor() public function getPluginVersion() { - return '0.3.0'; + return '0.3.1'; } public function getPluginDescription()