From eeb967b5408d544a98feaedeca83c07d10947c9a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 12 Jul 2022 11:58:32 +0200 Subject: [PATCH] Fix missing link to invoice --- htdocs/comm/action/class/actioncomm.class.php | 6 +++--- htdocs/compta/facture/class/facture.class.php | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/htdocs/comm/action/class/actioncomm.class.php b/htdocs/comm/action/class/actioncomm.class.php index 22419629333..27831dcadc7 100644 --- a/htdocs/comm/action/class/actioncomm.class.php +++ b/htdocs/comm/action/class/actioncomm.class.php @@ -285,17 +285,17 @@ class ActionComm extends CommonObject // Properties for links to other objects /** - * @var int Id of linked object + * @var int Id of linked object */ public $fk_element; // Id of record /** - * @var int Id of record alternative for API + * @var int Id of record alternative for API */ public $elementid; /** - * @var string Type of record. This if property ->element of object linked to. + * @var string Type of record. This if property ->element of object linked to. */ public $elementtype; diff --git a/htdocs/compta/facture/class/facture.class.php b/htdocs/compta/facture/class/facture.class.php index e9d1a449b0c..91b5df73a00 100644 --- a/htdocs/compta/facture/class/facture.class.php +++ b/htdocs/compta/facture/class/facture.class.php @@ -5603,6 +5603,9 @@ class Facture extends CommonInvoice //$actioncomm->email_subject = $subject; $actioncomm->errors_to = $errors_to; + $actioncomm->elementtype = 'invoice'; + $actioncomm->fk_element = $tmpinvoice->id; + //$actioncomm->extraparams = $extraparams; $actioncomm->create($user);