Commit a7521d37 authored by Robert Kasza's avatar Robert Kasza Committed by Erik Petra
Browse files

Issue #3310026: Error when no shipping method is selected yet

parent ceddae3a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -212,7 +212,9 @@ class PickupCapableShippingInformation extends ShippingInformation {
    $shipments = $order->get('shipments')->referencedEntities();
    $shipment = reset($shipments);

    return $shipment !== FALSE && $shipment->getShippingMethod()
    return $shipment !== FALSE &&
    !empty($shipment->getShippingMethod()) &&
      $shipment->getShippingMethod()
        ->getPlugin()
        ->getPluginId() === 'packeta';
  }