Closed (fixed)
Project:
Commerce Core
Version:
8.x-2.x-dev
Component:
Order
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Mar 2021 at 12:18 UTC
Updated:
1 Nov 2021 at 08:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
unrealauk commentedComment #3
unrealauk commentedComment #4
unrealauk commentedPlease, review my patch.
Comment #5
unrealauk commentedComment #6
jsacksick commentedThen we need to remove the
$order->hasItems()that is done right before if it's not working as expected, and replacing it by that.Also, we're calling
$order->hasItems()again later in the code.Comment #7
reflie commentedHi @jsacksick. Seems that it will be enough to replace
!$order->hasItems()condition with!$order->getItems()one.Take a look at the attached patch.
Thanks
Comment #9
jsacksick commented