Commit f89993d5 authored by Andreas Mayr's avatar Andreas Mayr Committed by Bojan Živanović
Browse files

Issue #2805745 by agoradesign: Totals are not recalculated on item removal

parent e0331b30
Loading
Loading
Loading
Loading
+1
Changes for modules/order/src/Entity/Order.php: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -243,6 +243,7 @@ class Order extends ContentEntityBase implements OrderInterface {
    $index = $this->getItemIndex($order_item);
    if ($index !== FALSE) {
      $this->get('order_items')->offsetUnset($index);
      $this->recalculateTotalPrice();
    }
    return $this;
  }