From ce2e8407d5e09321503075c82ea567c73c705deb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Tue, 3 Nov 2020 21:28:57 +0100 Subject: [PATCH] remove deprecated --- htdocs/compta/facture/class/facture-rec.class.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/compta/facture/class/facture-rec.class.php b/htdocs/compta/facture/class/facture-rec.class.php index 5771ead70f1..47e9d8161fd 100644 --- a/htdocs/compta/facture/class/facture-rec.class.php +++ b/htdocs/compta/facture/class/facture-rec.class.php @@ -347,7 +347,7 @@ class FactureRec extends CommonInvoice { // Extrafields if (method_exists($facsrc->lines[$i], 'fetch_optionals')) { - $facsrc->lines[$i]->fetch_optionals($facsrc->lines[$i]->rowid); + $facsrc->lines[$i]->fetch_optionals($facsrc->lines[$i]->id); $objectline->array_options = $facsrc->lines[$i]->array_options; } @@ -360,8 +360,8 @@ class FactureRec extends CommonInvoice } } - if (!empty($this->linkedObjectsIds) && empty($this->linked_objects)) // To use new linkedObjectsIds instead of old linked_objects - { + if (!empty($this->linkedObjectsIds) && empty($this->linked_objects)) { + // To use new linkedObjectsIds instead of old linked_objects $this->linked_objects = $this->linkedObjectsIds; // TODO Replace linked_objects with linkedObjectsIds } @@ -381,8 +381,8 @@ class FactureRec extends CommonInvoice $error++; } } - } else // Old behaviour, if linked_object has only one link per type, so is something like array('contract'=>id1)) - { + } else { + // Old behaviour, if linked_object has only one link per type, so is something like array('contract'=>id1)) $origin_id = $tmp_origin_id; $ret = $this->add_object_linked($origin, $origin_id); if (!$ret)