Commit 3fc80083 authored by Adam  Szymanski's avatar Adam Szymanski
Browse files

Issue #3216524: Upgrade to Drupal 9

parent 5050d2d1
Loading
Loading
Loading
Loading
+6 −1
Changes for commerce_inpost.install: 6 added lines, 1 removed line.
Original line number Diff line number Diff line
<?php

/**
 * @file
 * Install function for commerce_inpost.
 */

/**
 * Implements hook_install().
 */
function commerce_inpost_install() {

  /** Hacky way to ensure that our module overwrites templates from commerce_order */
  /* Hacky way to ensure that our module overwrites templates from commerce_order */
  module_set_weight('commerce_inpost', 42);
  module_set_weight('commerce_order', 41);
}
+1 −1
Changes for src/Plugin/Commerce/CheckoutPane/InPostPane.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -291,7 +291,7 @@ class InPostPane extends CheckoutPaneBase {
    if (isset($shipments[0])) {
      $address = $shipments[0]->getShippingProfile()
        ->get('address')
        ->first();;
        ->first();
      $profile = Profile::create([
        'type' => 'customer',
        'uid' => $this->order->getCustomerId(),
+0 −2
Changes for src/Plugin/Commerce/CheckoutPane/InpostReviewPane.php: 0 added lines, 2 removed lines.
Original line number Diff line number Diff line
<?php


namespace Drupal\commerce_inpost\Plugin\Commerce\CheckoutPane;


use Drupal\commerce_checkout\Plugin\Commerce\CheckoutPane\CheckoutPaneBase;
use Drupal\Core\Form\FormStateInterface;