From d6047334deafc75061f1b239c5a1f05e2bf61493 Mon Sep 17 00:00:00 2001 From: Chl Date: Fri, 19 Feb 2021 02:20:41 +0100 Subject: [PATCH] Reload not needed anymore Tested with Dolibarr 10.0.7 and 13.0.0. --- class/actions_sendrecurringinvoicebymail.class.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/class/actions_sendrecurringinvoicebymail.class.php b/class/actions_sendrecurringinvoicebymail.class.php index 03a1b11..eaa3801 100644 --- a/class/actions_sendrecurringinvoicebymail.class.php +++ b/class/actions_sendrecurringinvoicebymail.class.php @@ -102,10 +102,6 @@ class Actionssendrecurringinvoicebymail return -1; } - // L'objet n'est pas à jour ('manque last_main_doc entre autres) - $object->fetch($object->id); - $object->fetch_thirdparty(); - // Préparation des remplacements dans le sujet et le corps du mail $substitutionarray = getCommonSubstitutionArray($langs, 0, null, $object); complete_substitutions_array($substitutionarray, $langs, $object); // lourd et n'a rien ajouté lors de mes tests