This commit is contained in:
Laurent Destailleur
2026-01-20 14:01:09 +01:00
parent ff4b7c54d8
commit 7d13c12252
2 changed files with 9 additions and 9 deletions

View File

@@ -157,7 +157,7 @@ class Orders extends DolibarrApi
// Add online_payment_url, cf #20477
require_once DOL_DOCUMENT_ROOT.'/core/lib/payments.lib.php';
$this->commande->online_payment_url = getOnlinePaymentUrl(0, 'order', $this->commande->ref);
$this->commande->online_payment_url = getOnlinePaymentUrl(0, 'order', (string) $this->commande->ref);
return $this->_cleanObjectDatas($this->commande);
}