Skip to content

Commit

Permalink
Bugfix: Essential groups and cookies were only created temporarily in…
Browse files Browse the repository at this point in the history
… Contao 4.13
  • Loading branch information
doishub committed Nov 18, 2022
1 parent e32a86b commit 1227b39
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Resources/contao/dca/tl_cookiebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ public function createEssentialGroupAndCookies(Contao\DataContainer $dc)
$essentialGroup->pid = $dc->id;
$essentialGroup->identifier = 'lock';
$essentialGroup->published = 1;
$essentialGroup->tstamp = time();
$essentialGroup->save();

$arrDefaultCookies = [
Expand Down Expand Up @@ -385,6 +386,7 @@ public function createEssentialGroupAndCookies(Contao\DataContainer $dc)
$newCookie->description = $arrCookie[3];
$newCookie->identifier = $arrCookie[4];
$newCookie->published = 1;
$newCookie->tstamp = time();
$newCookie->save();
}

Expand Down

0 comments on commit 1227b39

Please sign in to comment.