Bug redirect validation cookie consent

This commit is contained in:
Fred Tempez 2022-05-06 22:31:44 +02:00
parent a27f2c2101
commit 9ebe23aa0b
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,9 @@
# Changelog
## Version 11.4.01
### Correcion :
- Un clic sur le bouton de validation du panneau RGPD envoyait vers la page d'accueil.
## Version 11.4.00
### Nouveautés :
- Compatibilité avec PHP 8.1

View File

@ -45,7 +45,7 @@ class common {
// Numéro de version
const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/update/raw/branch/master/';
const ZWII_VERSION = '11.4.00';
const ZWII_VERSION = '11.4.01';
const ZWII_UPDATE_CHANNEL = "v11";
public static $actions = [];
@ -1293,7 +1293,7 @@ class common {
$item .= '<h3>'. $this->getData(['locale', 'cookies', 'titleLabel']) . '</h3>';
$item .= '<p>' . $this->getData(['locale', 'cookies', 'mainLabel']) . '</p>';
// Formulaire de réponse
$item .= '<form method="POST" action="' . helper::baseUrl(false, true) . '" id="cookieForm">';
$item .= '<form method="POST" action="' . helper::baseUrl() . $this->getUrl(0) . '" id="cookieForm">';
$analytics = $this->getData(['config', 'seo', 'analyticsId']);
$stateCookieGA = $this->getInput('ZWII_COOKIE_GA_CONSENT') === 'true' ? 'checked="checked"' : '';
if( $analytics !== null AND $analytics !== '' ) {