Skip to content

Commit

Permalink
Fix #93
Browse files Browse the repository at this point in the history
- stylemanager_section_states were not working for Contao 5
  • Loading branch information
zoglo committed Nov 17, 2023
1 parent e431450 commit 9f48250
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 9f48250

Please sign in to comment.