Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix Fulfillment creation with empty tracking code

Pacu29ec4fdc71480
diff --git a/saleor/graphql/order/mutations/fulfillments.py b/saleor/graphql/order/mutations/fulfillments.py
index f759e451bc..ec748342f6 100644
--- a/saleor/graphql/order/mutations/fulfillments.py
+++ b/saleor/graphql/order/mutations/fulfillments.py
@@ -130,7 +130,8 @@ class FulfillmentCreate(BaseMutation):
if errors:
return cls(errors=errors)
fulfillment = models.Fulfillment(
- tracking_number=input.pop('tracking_number') or '', order=order)
+ tracking_number=input.pop('tracking_number', None) or '',
+ order=order)
cleaned_input = cls.clean_input(input, errors)
if errors:
return cls(errors=errors)