Skip to content
Code-Schnipsel Gruppen Projekte
Commit 28b9e0f8 erstellt von Patrick Müller's avatar Patrick Müller
Dateien durchsuchen

fix: clear delivery address if Order has empty address data

Übergeordneter 37700d01
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -217,10 +217,11 @@ public static function onQuiqqerOrderCustomerDataSave(
try {
$Address = $User->getAddress($_REQUEST['shipping-address']);
} catch (QUI\Exception $Exception) {
$Order->clearAddressDelivery();
$Order->save();
return;
}
$ErpAddress = new QUI\ERP\Address(
\array_merge($Address->getAttributes(), ['id' => $Address->getId()])
);
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren