Projet

Général

Profil

Révision b858700c

Ajouté par Assos Assos il y a environ 10 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/commerce/modules/order/includes/commerce_order.controller.inc
66 66
      $order->is_new = empty($order->order_id);
67 67

  
68 68
      // Set the timestamp fields.
69
      if ($order->is_new && empty($order->created)) {
70
        $order->created = REQUEST_TIME;
71
        $order->hostname = ip_address();
69
      if ($order->is_new) {
70
        if (empty($order->created)) {
71
          $order->created = REQUEST_TIME;
72
        }
73
        if (empty($order->hostname)) {
74
          $order->hostname = ip_address();
75
        }
72 76
      }
73 77
      else {
74 78
        // Otherwise if the order is not new but comes from an entity_create()

Formats disponibles : Unified diff