From 4b5d2337f6ed1976bf3fbfded03de861eb4ff941 Mon Sep 17 00:00:00 2001 From: Arlen Johnson Date: Fri, 11 Aug 2023 11:40:54 -0400 Subject: [PATCH] Fix URL generation for MVEA Canvas Add actions (NOJIRA) --- app/templates/element/mveaCanvas.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/app/templates/element/mveaCanvas.php b/app/templates/element/mveaCanvas.php index ea76f0b0f..6645d2cd3 100644 --- a/app/templates/element/mveaCanvas.php +++ b/app/templates/element/mveaCanvas.php @@ -46,15 +46,13 @@ $actionIcon = !empty($a['icon']) ? $a['icon'] : $this->Menu->getMenuIcon('Default'); $actionIconClass = !empty($a['iconClass']) ? $a['iconClass'] : ''; $actionClass = !empty($a['class']) ? $a['class'] . ' nospin' : 'nospin'; - $actionUrl = $this->Url->build( - [ - 'controller' => $a['controller'], - 'action' => $a['action'], - '?' => [ - $vv_entity_type . '_id' => $objId - ] + $actionUrl = [ + 'controller' => $a['controller'], + 'action' => $a['action'], + '?' => [ + $vv_entity_type . '_id' => $objId ] - ); + ]; $actionLabel = __d('controller', Cake\Utility\Inflector::camelize($a['controller']), [1]); $actionDataAttrs = [['data-cm-mveatype', $a['controller']]]; $action_args['vv_actions'][] = [