diff --git a/htdocs/commande/class/api_orders.class.php b/htdocs/commande/class/api_orders.class.php index bd39f0fae3f..91912192b0d 100644 --- a/htdocs/commande/class/api_orders.class.php +++ b/htdocs/commande/class/api_orders.class.php @@ -245,6 +245,8 @@ class Orders extends DolibarrApi if (is_array($tmparray)) { $commande_static->contacts_ids = $tmparray; } + // retrieve linked objects + $commande_static->fetchObjectLinked(); // Add online_payment_url, cf #20477 require_once DOL_DOCUMENT_ROOT.'/core/lib/payments.lib.php'; $commande_static->online_payment_url = getOnlinePaymentUrl(0, 'order', $commande_static->ref);