Erreur dans l'API REST (multicurrency_code)

Bonjour,

Nous avons remarqué un problème avec l’API REST de Dolibarr lors de l’utilisation de « /invoices/paymentsdistributed ». Nous avons une erreur aux lignes 279 et 281 du fichier « compta\paiement\class\paiement.class.php » car « $this->multicurrency_code[$key] » n’existe pas.
Le problème semble résolu en ajoutant un test isset sur la variable :

if (empty($currencyofpayment) && isset($this->multicurrency_code[$key])) {
$currencyofpayment = $this->multicurrency_code[$key];
}
if (isset($this->multicurrency_code[$key]) && $currencyofpayment != $this->multicurrency_code[$key]) {
// If we have invoices with different currencies in the payment, we stop here
$this->error = ‹ ErrorYouTryToPayInvoicesWithDifferentCurrenciesInSamePayment ›;
return -1;
}