From 48d674578be10041391f5b0adec19ca97ced3beb Mon Sep 17 00:00:00 2001 From: Alexis Algoud Date: Tue, 19 Jan 2016 11:54:07 +0100 Subject: [PATCH] FIX line is refetch (and seems useless) unless it was modified by the hook previous calling --- htdocs/core/modules/contract/doc/pdf_strato.modules.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/modules/contract/doc/pdf_strato.modules.php b/htdocs/core/modules/contract/doc/pdf_strato.modules.php index 21944afad4f..56af3a40cd2 100644 --- a/htdocs/core/modules/contract/doc/pdf_strato.modules.php +++ b/htdocs/core/modules/contract/doc/pdf_strato.modules.php @@ -254,7 +254,7 @@ class pdf_strato extends ModelePDFContract { $objectligne = $object->lines[$i]; - $valide = $objectligne->id ? $objectligne->fetch($objectligne->id) : 0; + $valide = $objectligne->id ? 1 : 0; if ($valide > 0 || $object->specimen) {