Skip to content

Commit

Permalink
Fix MultiAction in treeview (#518)
Browse files Browse the repository at this point in the history
  • Loading branch information
romanmatyus authored and juniwalk committed Apr 19, 2017
1 parent 3e62fd9 commit 06ce69c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/templates/datagrid_tree.latte
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
{foreach $actions as $key => $action}
{if $tmp_row->hasAction($key)}
{if $action->hasTemplate()}
{include $action->getTemplate(), item => $tmp_row->getItem(), (expand) $action->getTemplateVariables()}
{include $action->getTemplate(), item => $tmp_row->getItem(), (expand) $action->getTemplateVariables(), row => $tmp_row}
{else}
{$action->render($tmp_row)|noescape}
{/if}
Expand Down Expand Up @@ -114,7 +114,7 @@
{foreach $actions as $key => $action}
{if $row->hasAction($key)}
{if $action->hasTemplate()}
{include $action->getTemplate(), item => $item, (expand) $action->getTemplateVariables()}
{include $action->getTemplate(), item => $item, (expand) $action->getTemplateVariables(), row => $row}
{else}
{$action->render($row)|noescape}
{/if}
Expand Down

0 comments on commit 06ce69c

Please sign in to comment.