Skip to content

Commit

Permalink
merged with old changes
Browse files Browse the repository at this point in the history
  • Loading branch information
margud committed Jul 26, 2022
1 parent 8c4f756 commit 95ea27b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
# Changelog #
## Changes in release 4.5.1 ##
+ Fixed issue where expired transactions changes order status.

## Changes in release 4.5.0 ##
+ Fixed order API check for refunded payments that check if transaction is still used.

## Changes in release 4.5.0 ##
Expand Down
4 changes: 2 additions & 2 deletions src/Repository/CountryRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function getMethodCountryIds($methodId)

public function updatePaymentMethodCountries($idMethod, $idCountries)
{
$sql = 'DELETE FROM ' . _DB_PREFIX_ . 'mol_country WHERE `id_method` = "' . $idMethod . '"';
$sql = 'DELETE FROM ' . _DB_PREFIX_ . 'mol_country WHERE `id_method` = "' . (int) $idMethod . '"';
if (!Db::getInstance()->execute($sql)) {
return false;
}
Expand Down Expand Up @@ -85,7 +85,7 @@ public function getExcludedCountryIds($methodId)

public function updatePaymentMethodExcludedCountries($idMethod, $idCountries)
{
$sql = 'DELETE FROM ' . _DB_PREFIX_ . 'mol_excluded_country WHERE `id_method` = "' . $idMethod . '"';
$sql = 'DELETE FROM ' . _DB_PREFIX_ . 'mol_excluded_country WHERE `id_method` = "' . (int) $idMethod . '"';
if (!Db::getInstance()->execute($sql)) {
return false;
}
Expand Down

0 comments on commit 95ea27b

Please sign in to comment.