Skip to content

Commit

Permalink
Merge pull request #108 from PrestaShop/dev
Browse files Browse the repository at this point in the history
Release 2.3.3
  • Loading branch information
Progi1984 authored Mar 11, 2022
2 parents e9f3a2e + 0caaf4b commit 654f950
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<module>
<name>ps_emailalerts</name>
<displayName><![CDATA[Mail alerts]]></displayName>
<version><![CDATA[2.3.2]]></version>
<version><![CDATA[2.3.3]]></version>
<description><![CDATA[Sends e-mail notifications to customers and merchants regarding stock and order modifications.]]></description>
<author><![CDATA[PrestaShop]]></author>
<tab><![CDATA[administration]]></tab>
Expand Down
6 changes: 2 additions & 4 deletions ps_emailalerts.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function __construct()
{
$this->name = 'ps_emailalerts';
$this->tab = 'administration';
$this->version = '2.3.2';
$this->version = '2.3.3';
$this->author = 'PrestaShop';
$this->need_instance = 0;

Expand Down Expand Up @@ -106,10 +106,8 @@ public function install($delete_params = true)
!$this->registerHook('actionProductAttributeDelete') ||
!$this->registerHook('actionProductAttributeUpdate') ||
!$this->registerHook('actionProductCoverage') ||
!$this->registerHook('actionProductOutOfStock') ||
!$this->registerHook('actionOrderReturn') ||
!$this->registerHook('actionOrderEdited') ||
!$this->registerHook('registerGDPRConsent') ||
!$this->registerHook('actionDeleteGDPRCustomer') ||
!$this->registerHook('actionExportGDPRData') ||
!$this->registerHook('displayProductAdditionalInfo') ||
Expand Down Expand Up @@ -697,7 +695,7 @@ public function hookActionProductDelete($params)
Db::getInstance()->execute($sql);
}

public function hookActionAttributeDelete($params)
public function hookActionProductAttributeDelete($params)
{
if ($params['deleteAllAttributes']) {
$sql = '
Expand Down
34 changes: 34 additions & 0 deletions upgrade/upgrade-2.3.3.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php
/**
* 2007-2021 PrestaShop.
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <[email protected]>
* @copyright 2007-2020 PrestaShop SA
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
if (!defined('_PS_VERSION_')) {
exit;
}

function upgrade_module_2_3_3($object)
{
return $object->unregisterHook('registerGDPRConsent')
&& $object->unregisterHook('actionProductOutOfStock');
}

0 comments on commit 654f950

Please sign in to comment.