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 Miloslav Hůla committed Jul 23, 2021
1 parent 491917c commit b948a5a
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.4"
"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")
|| isset($form["insert"])
|| isset($form["filter"])
|| $control->getDeleteCallback();
Expand Down

0 comments on commit b948a5a

Please sign in to comment.