From c19d8be9028981bae3aec483f34c1c318ef38597 Mon Sep 17 00:00:00 2001 From: savlo Date: Thu, 6 Nov 2025 12:42:08 +0100 Subject: [PATCH] Update Update.php The empty (default) value of the custom attribute is '0' not '', making this code explode because is trying to get the attribute called '0' which does not exist and get a null pointer ->getValue() --- Model/Checkout/Company/Update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Model/Checkout/Company/Update.php b/Model/Checkout/Company/Update.php index 2dd036f..c7e34ff 100644 --- a/Model/Checkout/Company/Update.php +++ b/Model/Checkout/Company/Update.php @@ -56,7 +56,7 @@ public function updateCustomerBusinessIdFromRequest(DataObject $request, CartInt } $storeCompanyIdAttributeCode = $this->dataProvider->getStoreCompanyIdAttributeCode($quote->getStore()); - if ($storeCompanyIdAttributeCode === '') { + if ($storeCompanyIdAttributeCode === '0') { return; }