Skip to content

Commit

Permalink
Ensure the formkey block definition is really used during ajax requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinai committed Dec 8, 2023
1 parent 469244f commit 10b9965
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Model/GridBlockRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public function __construct(LayoutInterface $layout, string $gridClass = HyvaGri
public function renderGrid(string $gridName): string
{
$this->layout->getUpdate()->load('formkey');
$this->layout->generateXml();
$this->layout->generateElements();
$arguments = ['data' => ['grid_name' => $gridName]];
$block = $this->layout->createBlock($this->gridClass, 'hyva_grid_block', $arguments);
Expand Down

0 comments on commit 10b9965

Please sign in to comment.