Skip to content

Commit

Permalink
Fix for latte 2.9.0
Browse files Browse the repository at this point in the history
Use Template.hasBlock method instead of removed Template.blockQueue property.
  • Loading branch information
Aleš Zrak authored and hrach committed Nov 19, 2020
1 parent 796299e commit 6d1d222
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"nette/component-model": "~3.0",
"nette/forms": "~3.0",
"nette/utils": "~3.0",
"latte/latte": "~2.5"
"latte/latte": "~2.9"
},
"extra": {
"branch-alias": {
Expand Down
2 changes: 1 addition & 1 deletion src/Datagrid.latte
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{php
$hasActionsColumn =
(bool) $control->getEditFormFactory() /* we may render only one row so the form[filter] may not be created */
|| isset($this->blockQueue["row-actions"]);
|| $this->hasBlock("row-actions");
$hasGlobalActionsColumn = isset($form['actions']);
foreach ($_templates as $_template):
Expand Down

0 comments on commit 6d1d222

Please sign in to comment.