From 560b8dc04cc49e5db28450014ebfc7842613a646 Mon Sep 17 00:00:00 2001 From: atm-florian Date: Fri, 1 Apr 2022 15:26:06 +0200 Subject: [PATCH] FIX 16.0 - copy `title` over `ref` on FactureFournisseurRec object --- htdocs/fourn/class/fournisseur.facture-rec.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/fourn/class/fournisseur.facture-rec.class.php b/htdocs/fourn/class/fournisseur.facture-rec.class.php index d192d6b96c8..d9b8d643748 100644 --- a/htdocs/fourn/class/fournisseur.facture-rec.class.php +++ b/htdocs/fourn/class/fournisseur.facture-rec.class.php @@ -242,6 +242,7 @@ class FactureFournisseurRec extends CommonInvoice // Clean parameters $this->titre = empty($this->titre) ? '' : $this->titre; + $this->ref = $this->{$this->table_ref_field}; $this->ref_supplier = empty($this->ref_supplier) ? '' : $this->ref_supplier; $this->usenewprice = empty($this->usenewprice) ? 0 : $this->usenewprice; $this->suspended = empty($this->suspended) ? 0 : $this->suspended; @@ -583,6 +584,7 @@ class FactureFournisseurRec extends CommonInvoice $this->id = $obj->rowid; $this->titre = $obj->titre; + $this->ref = $this->{$this->table_ref_field}; $this->ref_supplier = $obj->ref_supplier; $this->entity = $obj->entity; $this->socid = $obj->fk_soc;