mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Correction bug #32365 Warning: Attempt to read property datepaye on string
This commit is contained in:
parent
8673588274
commit
912206d99b
|
|
@ -139,7 +139,7 @@ class mod_supplier_payment_brodator extends ModeleNumRefSupplierPayments
|
|||
return 0;
|
||||
}
|
||||
|
||||
$numFinal = get_next_value($db, $mask, 'paiementfourn', 'ref', '', $objsoc, $object->datepaye);
|
||||
$numFinal = get_next_value($db, $mask, 'paiementfourn', 'ref', '', $objsoc, is_object($object) ?$object->datepaye :'');
|
||||
|
||||
return $numFinal;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user