Skip to content

Commit

Permalink
Fixes required after Filtering feature initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioannis Igoumenos committed May 1, 2022
1 parent 9b995a6 commit 67ac095
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/src/View/Helper/MenuHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ public function getMenuIcon($action) {
'Delete' => 'delete'
);

return $icon[$action];
// For the actions with Default order we can pass directly the name of the icon
return $icon[$action] ?? $action;
}

}
2 changes: 1 addition & 1 deletion app/templates/Standard/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function _column_key($modelsName, $c, $tz=null) {
}

$action_args['vv_actions'][] = [
'order' => $this->Menu->getMenuOrder($t['icon']),
'order' => $this->Menu->getMenuOrder($t['order']),
'icon' => $this->Menu->getMenuIcon($t['icon']),
'url' => $this->Url->build($t['link']),
'label' => $t['label'],
Expand Down

0 comments on commit 67ac095

Please sign in to comment.