@@ -100,7 +100,7 @@ public function __construct()
100100 $ this ->confirmUninstall = $ this ->trans ('Are you sure that you want to delete all of your contacts? ' , [], 'Modules.Emailsubscription.Admin ' );
101101 $ this ->ps_versions_compliancy = ['min ' => '1.7.1.0 ' , 'max ' => _PS_VERSION_ ];
102102
103- $ this ->version = '2.8.0 ' ;
103+ $ this ->version = '2.8.1 ' ;
104104 $ this ->author = 'PrestaShop ' ;
105105 $ this ->error = false ;
106106 $ this ->valid = false ;
@@ -153,8 +153,8 @@ public function install()
153153 $ conditions [(int ) $ lang ['id_lang ' ]] = $ this ->getConditionFixtures ($ lang );
154154 }
155155 Configuration::updateValue ('NW_CONDITIONS ' , $ conditions , true );
156- Configuration::updateValue ('NW_VERIFICATION_EMAIL ' , false );
157- Configuration::updateValue ('NW_CONFIRMATION_EMAIL ' , false );
156+ Configuration::updateValue ('NW_VERIFICATION_EMAIL ' , 0 );
157+ Configuration::updateValue ('NW_CONFIRMATION_EMAIL ' , 0 );
158158 Configuration::updateValue ('NW_VOUCHER_CODE ' , '' );
159159
160160 return Db::getInstance ()->execute ('
@@ -206,8 +206,8 @@ public function uninstallPrestaShop16Module()
206206 public function getContent ()
207207 {
208208 if (Tools::isSubmit ('submitUpdate ' )) {
209- Configuration::updateValue ('NW_CONFIRMATION_EMAIL ' , (bool ) Tools::getValue ('NW_CONFIRMATION_EMAIL ' ));
210- Configuration::updateValue ('NW_VERIFICATION_EMAIL ' , (bool ) Tools::getValue ('NW_VERIFICATION_EMAIL ' ));
209+ Configuration::updateValue ('NW_CONFIRMATION_EMAIL ' , (int ) Tools::getValue ('NW_CONFIRMATION_EMAIL ' ));
210+ Configuration::updateValue ('NW_VERIFICATION_EMAIL ' , (int ) Tools::getValue ('NW_VERIFICATION_EMAIL ' ));
211211
212212 $ conditions = [];
213213 $ languages = Language::getLanguages (false );
0 commit comments