From 1b39cdf6e6bb6238fbe7814b75cda0dce18edf34 Mon Sep 17 00:00:00 2001 From: Pavel Linhart Date: Wed, 9 Feb 2022 13:02:10 +0100 Subject: [PATCH] Templates: fix empty closing tag {/} is deprecated (#1013) --- src/templates/datagrid.latte | 2 +- src/templates/datagrid_tree.latte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/templates/datagrid.latte b/src/templates/datagrid.latte index 93376ab22..c2d0379b8 100644 --- a/src/templates/datagrid.latte +++ b/src/templates/datagrid.latte @@ -229,7 +229,7 @@ {block tbody} - isSortable()}data-sortable data-sortable-url="{plink $control->getSortableHandler()}" data-sortable-parent-path="{$control->getSortableParentPath()}"{/}> + isSortable()}data-sortable data-sortable-url="{plink $control->getSortableHandler()}" data-sortable-parent-path="{$control->getSortableParentPath()}"{/if}> {snippetArea items} {if $inlineAdd && $inlineAdd->isPositionTop()} {include inlineAddRow, columns => $columns} diff --git a/src/templates/datagrid_tree.latte b/src/templates/datagrid_tree.latte index 77f7e872f..99b9c0422 100644 --- a/src/templates/datagrid_tree.latte +++ b/src/templates/datagrid_tree.latte @@ -133,7 +133,7 @@ -
isSortable()}data-sortable-tree data-sortable-url="{plink $control->getSortableHandler()}"{/}>
+
isSortable()}data-sortable-tree data-sortable-url="{plink $control->getSortableHandler()}"{/if}>
{/foreach} {if !$rows}