diff --git a/module/form/form.php b/module/form/form.php index d1df2a6..9da2be1 100644 --- a/module/form/form.php +++ b/module/form/form.php @@ -630,7 +630,16 @@ class form extends common { $redirect = helper::baseUrl() . $this->getUrl(0); if ( $this->getData(['module', $this->getUrl(0), 'config', 'pageId']) !== '') $redirect = helper::baseUrl() . $this->getData(['module', $this->getUrl(0), 'config', 'pageId']); // Effacement des données provisoires - if( self::$inputNotices === [] )$_SESSION['draft']=[]; + if( self::$inputNotices === [] ){ + $_SESSION['draft'] = []; + $_SESSION['draft']['mail'] = ""; + $_SESSION['draft']['textarea'] = ""; + $_SESSION['draft']['datetime'] = null; + $_SESSION['draft']['checkbox'] = []; + $_SESSION['draft']['select'] = []; + $_SESSION['draft']['text'] = []; + $_SESSION['draft']['file'] = ""; + } } else { $sent = false; }