Skip to content

Commit 5916c91

Browse files
committed
Fix exception during template rendering when enabling searching serverside
1 parent 450eda2 commit 5916c91

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ All notable changes to `omines\datatables-bundle` will be documented in this fil
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

55
## [Unreleased]
6-
Nothing yet.
6+
### Fixed
7+
- Fixed exception during template rendering when enabling searching serverside
78

89
## [0.1.1] - 2017-12-03
910
### Fixed

src/Resources/views/datatable_html.html.twig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@
77
<th>{{ column.label|trans }}</th>
88
{% endfor %}
99
</tr>
10-
{% if datatable.option('searching') and datatable.setting('column_filter') in ['both', 'thead'] %}
10+
{#% if datatable.option('searching') and datatable.setting('column_filter') in ['both', 'thead'] %}
1111
<tr class="datatable-filters">
1212
{% for column in datatable.columns %}
1313
<td>{% if column.filter != null %}{% include column.filter.templateHtml %}{% endif %}</td>
1414
{% endfor %}
1515
</tr>
16-
{% endif %}
16+
{% endif %#}
1717
</thead>
18-
{% if datatable.option('searching') and datatable.setting('column_filter') in ['both', 'tfoot'] %}
18+
{#% if datatable.option('searching') and datatable.setting('column_filter') in ['both', 'tfoot'] %}
1919
<tfoot>
2020
<tr class="datatable-filters">
2121
{% for column in datatable.columns %}
2222
<td>{% if column.filter != null %}{% include column.filter.templateHtml %}{% endif %}</td>
2323
{% endfor %}
2424
</tr>
2525
</tfoot>
26-
{% endif %}
26+
{% endif %#}
2727
<tbody>
2828
</tbody>
2929
</table>

0 commit comments

Comments
 (0)