Skip to content

Commit

Permalink
Merge pull request #94 from oveleon/develop
Browse files Browse the repository at this point in the history
Adjust session to work on contao 5
  • Loading branch information
zoglo authored Nov 17, 2023
2 parents 1feface + 9f48250 commit a969373
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EventListener/ExecutePostActionsListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ class ExecutePostActionsListener
*/
public function __invoke($strAction, DataContainer $dc)
{
if($strAction !== 'selectStyleManagerSection')
if ($strAction !== 'selectStyleManagerSection')
{
return;
}

/** @var AttributeBagInterface $objSessionBag */
$objSessionBag = System::getContainer()->get('session')->getBag('contao_backend');
$objSessionBag = System::getContainer()->get('request_stack')->getSession()->getBag('contao_backend');

$fs = $objSessionBag->get('stylemanager_section_states');
$fs[Input::post('groupAlias')] = Input::post('identifier');
Expand Down

0 comments on commit a969373

Please sign in to comment.