fix(kasse): HTTP 500 in der Gast-Kasse bei leerem Land
- Country::getShippingAreaById: Land/Gruppe als int, leeres Land -> false statt 'WHERE id = ' (SQL-Fatal, leere Seite, 16x seit 03.09.2026) - manage_guest_order_address: Lieferadresse = Rechnungsadresse ohne Land -> Standardland fuer die Versandgebiet-Suche
This commit is contained in:
@@ -261,6 +261,14 @@ class Country extends Main {
|
||||
public static function getShippingAreaById($countryId, $customer_group_id = false) {
|
||||
$db = Registry::get('base')->db;
|
||||
|
||||
// 22.09.2026: leeres Land (Gast-Kasse per Enter abgeschickt, Land nicht gewaehlt) lief in
|
||||
// "WHERE id = " und damit in einen SQL-Fatal -> HTTP 500 mit leerer Seite in der Kasse.
|
||||
$countryId = (int) $countryId;
|
||||
$customer_group_id = (int) $customer_group_id;
|
||||
if ($countryId <= 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$sql = "SELECT shipping_area_id
|
||||
FROM countries
|
||||
WHERE id = $countryId";
|
||||
|
||||
Reference in New Issue
Block a user