From 33b1e1f65fcb06f817b96c19916c28a1c2ae683f Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 8 Oct 2020 21:35:46 +0200 Subject: [PATCH] fix js error after upgrade to cytoscrape.js 3.x --- views/bootstrap/class.WorkflowGraph.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/views/bootstrap/class.WorkflowGraph.php b/views/bootstrap/class.WorkflowGraph.php index 5c723c6d2..accaeaaa3 100644 --- a/views/bootstrap/class.WorkflowGraph.php +++ b/views/bootstrap/class.WorkflowGraph.php @@ -150,7 +150,7 @@ cy.on('free', 'node', function(evt) { }); cy.on('tap', 'node', function(evt) { - var node = evt.cyTarget; + var node = evt.target; var scratch = node.scratch('app'); if(typeof scratch !== 'undefined') { noty({ @@ -217,12 +217,12 @@ $(document).ready(function() { $transusers = $transition->getUsers(); $unames = array(); foreach($transusers as $transuser) { - $unames[] = $transuser->getUser()->getLogin().' - '.$transuser->getUser()->getFullName(); + $unames[] = htmlspecialchars($transuser->getUser()->getLogin().' - '.$transuser->getUser()->getFullName()); } $transgroups = $transition->getGroups(); $gnames = array(); foreach($transgroups as $transgroup) { - $gnames[] = $transgroup->getGroup()->getName(); + $gnames[] = htmlspecialchars($transgroup->getGroup()->getName()); } echo "cy.add({ data: {