From 313addec74cda8481ac48c6e984e23905e81adeb Mon Sep 17 00:00:00 2001 From: Anthony Berton Date: Tue, 27 Sep 2022 09:21:28 +0200 Subject: [PATCH] FIX - php V8 get number doc saphir --- htdocs/core/modules/propale/mod_propale_saphir.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/modules/propale/mod_propale_saphir.php b/htdocs/core/modules/propale/mod_propale_saphir.php index af7579fb142..72ca13f3a4c 100644 --- a/htdocs/core/modules/propale/mod_propale_saphir.php +++ b/htdocs/core/modules/propale/mod_propale_saphir.php @@ -144,7 +144,7 @@ class mod_propale_saphir extends ModeleNumRefPropales // Get entities $entity = getEntity('proposalnumber', 1, $propal); - $date = $propal->date; + $date = isset($propal->date)?$propal->date:dol_now(); $numFinal = get_next_value($db, $mask, 'propal', 'ref', '', $objsoc, $date, 'next', false, null, $entity);