Skip to content

row-actions ignored if filter is not used #64

@milsorm

Description

@milsorm

I have grid without filter but with row-actions block in my template.

Inside Datagrid.latte:

{var $hasActionsColumn =
    isset($this->blocks['row-actions']) ||
    isset($this->blocks['global-actions']) ||
    isset($form['filter']) ||
    (bool) $control->getEditFormFactory()
}

When dumped $this->blocks the row-actions is missing. If I create filter form, than $hasActionsColumn will be true (not from row-actions block existence) and I can see all row-actions. Without filter not.

Possibly $this->blocks cannot see MY row-actions but only default blocks in Datagrid.latte?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions