From c5d264f53e2688ada620017d6fd8a7d5cc64458f Mon Sep 17 00:00:00 2001 From: Nicolas Date: Thu, 30 Jul 2020 14:48:35 +0200 Subject: [PATCH] Fix : Failure action on place order button --- modules/dolibarr/doli-order/action/class-doli-order-action.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/dolibarr/doli-order/action/class-doli-order-action.php b/modules/dolibarr/doli-order/action/class-doli-order-action.php index 7aa6974..45a1071 100644 --- a/modules/dolibarr/doli-order/action/class-doli-order-action.php +++ b/modules/dolibarr/doli-order/action/class-doli-order-action.php @@ -404,7 +404,7 @@ public function create_order( $proposal ) { ) ); // translators: Create order 00001 for the third party Eoxia. - LOG_Util::log( sprintf( 'Create order %s for the third party %s', $doli_order->ref, $third_party->data['title'] ), 'wpshop2' ); + LOG_Util::log( sprintf( 'Create order %s for the third party %s', $doli_order->ref, $third_party[0]->data['title'] ), 'wpshop2' ); $wp_order = Doli_Order::g()->get( array( 'schema' => true ), true ); $wp_order = Doli_Order::g()->doli_to_wp( $doli_order, $wp_order, true );