Skip to content

Commit

Permalink
Update PR after publication of v. 2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lmeyer1 committed Nov 29, 2022
1 parent 0cbc6d8 commit 06d37ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MailAlert.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public static function customerHasNotification($id_customer, $id_product, $id_pr
return count(Db::getInstance((bool) _PS_USE_SQL_SLAVE_)->executeS($sql));
}

public static function deleteAlert($id_customer, $customer_email, $id_product, $id_product_attribute, $id_shop, $notification_sent)
public static function deleteAlert($id_customer, $customer_email, $id_product, $id_product_attribute, $id_shop = null, $notification_sent = true)
{
$sql = 'UPDATE `' . _DB_PREFIX_ . self::$definition['table'] . '` set `deleted` = 1, date_upd = NOW()' .
($notification_sent ? ', `notification_sent` = NOW()' : '') .
Expand Down
2 changes: 1 addition & 1 deletion upgrade/upgrade-2.3.4.php → upgrade/upgrade-2.4.1.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
function upgrade_module_2_3_4()
function upgrade_module_2_4_1()
{
$result = Db::getInstance()->execute('ALTER TABLE `' . _DB_PREFIX_ . 'mailalert_customer_oos` ADD `date_add` DATETIME NOT NULL, ADD `date_upd` DATETIME NOT NULL;');
$result = $result && Db::getInstance()->execute('ALTER TABLE `' . _DB_PREFIX_ . 'mailalert_customer_oos` ADD `deleted` TINYINT NOT NULL DEFAULT 0, ADD `notification_sent` DATETIME NULL DEFAULT NULL, ADD INDEX (`deleted`)');
Expand Down

0 comments on commit 06d37ce

Please sign in to comment.