Skip to content

Commit

Permalink
Fix #976
Browse files Browse the repository at this point in the history
  • Loading branch information
DonCallisto committed Aug 24, 2017
1 parent 1684a94 commit f5682e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Twig/DataGridExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ protected function getTemplatesFromString(Twig_Environment $environment, $theme)
$this->templates = [];

$template = $environment->loadTemplate($theme);
while ($template !== null) {
while ($template instanceof \Twig_Template) {
$this->templates[] = $template;
$template = $template->getParent([]);
}
Expand Down

1 comment on commit f5682e5

@Quovandius
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fix my issue : #976

Thanks =)

Please sign in to comment.