This commit is contained in:
Laurent Destailleur
2026-01-20 16:46:14 +01:00
parent 275b82e51e
commit a6c11e27b1
4 changed files with 11 additions and 11 deletions

View File

@@ -280,7 +280,7 @@ class Orders extends DolibarrApi
// 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);
$commande_static->online_payment_url = getOnlinePaymentUrl(0, 'order', (string) $commande_static->ref);
$obj_ret[] = $this->_filterObjectProperties($this->_cleanObjectDatas($commande_static), $properties);
}
@@ -968,7 +968,7 @@ class Orders extends DolibarrApi
//fix #20477 : add online_payment_url
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);
}