- Issue created by @rhovland
- Merge request !25Issue #3492075 by rhovland: Fix PACKAGE_ALL_IN_ONE WSOD when creating new shipment β (Open) created by rhovland
- πΊπΈUnited States rhovland Oregon
Issue fixed. Uses null coalescing operator to set a package name if $shipment_title is null.
I moved
$shipment_title = $shipment->getTitle()
and$package_type = $shipment->getPackageType()
outside of the foreach loop because the loop is for packages not shipments and those variables don't need to be reset for every package because they will never change. - πΊπΈUnited States rhovland Oregon
I investigated the source of $shipment_title->render() and did not find an issue that it was added to solve. It seems to be vestige of an earlier module version and I can't find a reason why it would be needed.
- First commit to issue fork.