From 240d310a7f30d697d4ece2c4fba92ee8e0e6b089 Mon Sep 17 00:00:00 2001 From: Maxime Kohlhaas Date: Wed, 31 Oct 2012 08:57:56 +0100 Subject: [PATCH] Fix : shipment PDF rouget wasn't using the right var to access related internal contact --- .../modules/expedition/doc/pdf_expedition_rouget.modules.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/modules/expedition/doc/pdf_expedition_rouget.modules.php b/htdocs/core/modules/expedition/doc/pdf_expedition_rouget.modules.php index 46031811be4..0998af96c34 100644 --- a/htdocs/core/modules/expedition/doc/pdf_expedition_rouget.modules.php +++ b/htdocs/core/modules/expedition/doc/pdf_expedition_rouget.modules.php @@ -542,7 +542,7 @@ class pdf_expedition_rouget extends ModelePdfExpedition // Sender properties $carac_emetteur=''; // Add internal contact of proposal if defined - $arrayidcontact=$object->getIdContact('internal','SALESREPFOLL'); + $arrayidcontact=$object->$origin->getIdContact('internal','SALESREPFOLL'); if (count($arrayidcontact) > 0) { $object->fetch_user($arrayidcontact[0]);