Skip to content

Commit

Permalink
Update ContaoPageContextInitializer.php
Browse files Browse the repository at this point in the history
This should fix some problems in MetaModels, 'cause Contao add a pageModels to the request which is missing for example in MetaModels and so some AJAX calls fail.
  • Loading branch information
stefanheimes authored Jan 9, 2024
1 parent 04fed76 commit e676fec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Request/ContaoPageContextInitializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ public function initialize(PageContext $context, Request $request): void
$this->framework->initialize();
$this->initializeUserLoggedInConstants();
$this->initializeGlobals($context);
$request->attributes->set('pageModel', $context->page());
$this->initializeLocale($context, $request);
$this->initializeStaticUrls();
$this->initializePageLayout($context);
Expand Down

0 comments on commit e676fec

Please sign in to comment.