diff --git a/changelog.md b/changelog.md index 96347bb5c..5c045763b 100644 --- a/changelog.md +++ b/changelog.md @@ -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 ## diff --git a/src/Repository/CountryRepository.php b/src/Repository/CountryRepository.php index 6ed9eb2ae..f7615e59a 100644 --- a/src/Repository/CountryRepository.php +++ b/src/Repository/CountryRepository.php @@ -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; } @@ -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; }