Skip to content

Commit

Permalink
Fix URL generation for MVEA Canvas Add actions (NOJIRA) (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
arlen authored Aug 11, 2023
1 parent 27c4ceb commit 1155261
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions app/templates/element/mveaCanvas.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'][] = [
Expand Down

0 comments on commit 1155261

Please sign in to comment.