Skip to content

Commit

Permalink
[BUGFIX] Reset parent container after rendering grids (FluidTYPO3#1560)
Browse files Browse the repository at this point in the history
Allows putting Flux fields after a grid definition.
  • Loading branch information
HenningCash authored and NamelessCoder committed Jul 8, 2018
1 parent fb4f75b commit d5f6e49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Classes/ViewHelpers/GridViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,13 @@ public static function renderStatic(
\Closure $renderChildrenClosure,
RenderingContextInterface $renderingContext
) {
$container = static::getContainerFromRenderingContext($renderingContext);
$grid = static::getGridFromRenderingContext($renderingContext, $arguments['name']);
$grid->setLabel($arguments['label']);
$grid->setVariables($arguments['variables']);
$grid->setExtensionName(static::getExtensionNameFromRenderingContextOrArguments($renderingContext, $arguments));
static::setContainerInRenderingContext($renderingContext, $grid);
$renderChildrenClosure();
static::setContainerInRenderingContext($renderingContext, $container);
}
}

0 comments on commit d5f6e49

Please sign in to comment.