From daf2a19396162d1f7be3bcea36cc425823956696 Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@destailleur.fr>
Date: Wed, 28 Mar 2012 00:56:12 +0200
Subject: [PATCH] New: Add signature at end of predefined email text

---
 htdocs/comm/propal.php          | 2 +-
 htdocs/commande/fiche.php       | 2 +-
 htdocs/compta/facture.php       | 2 +-
 htdocs/expedition/fiche.php     | 2 +-
 htdocs/fichinter/fiche.php      | 2 +-
 htdocs/fourn/commande/fiche.php | 2 +-
 htdocs/fourn/facture/fiche.php  | 2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php
index 57dd86b63ac..4922fcc7225 100644
--- a/htdocs/comm/propal.php
+++ b/htdocs/comm/propal.php
@@ -1823,7 +1823,7 @@ if ($id > 0 || ! empty($ref))
 
 		// Tableau des substitutions
 		$formmail->substit['__PROPREF__']=$object->ref;
-        $formmail->substit['__SIGNATURE__']='';
+        $formmail->substit['__SIGNATURE__']=$user->signature;
         $formmail->substit['__PERSONALIZED__']='';
 		// Tableau des parametres complementaires
 		$formmail->param['action']='send';
diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php
index e3096ffdac9..600f3056218 100644
--- a/htdocs/commande/fiche.php
+++ b/htdocs/commande/fiche.php
@@ -2282,7 +2282,7 @@ else
                 $formmail->withcancel=1;
                 // Tableau des substitutions
                 $formmail->substit['__ORDERREF__']=$object->ref;
-                $formmail->substit['__SIGNATURE__']='';
+                $formmail->substit['__SIGNATURE__']=$user->signature;
                 $formmail->substit['__PERSONALIZED__']='';
                 // Tableau des parametres complementaires
                 $formmail->param['action']='send';
diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php
index 8d9e9305d16..00af32220d7 100644
--- a/htdocs/compta/facture.php
+++ b/htdocs/compta/facture.php
@@ -3182,7 +3182,7 @@ else
                 $formmail->withcancel=1;
                 // Tableau des substitutions
                 $formmail->substit['__FACREF__']=$object->ref;
-                $formmail->substit['__SIGNATURE__']='';
+                $formmail->substit['__SIGNATURE__']=$user->signature;
                 $formmail->substit['__PERSONALIZED__']='';
                 // Tableau des parametres complementaires du post
                 $formmail->param['action']=$action;
diff --git a/htdocs/expedition/fiche.php b/htdocs/expedition/fiche.php
index 23f29474cf5..5d3903e5471 100644
--- a/htdocs/expedition/fiche.php
+++ b/htdocs/expedition/fiche.php
@@ -1413,7 +1413,7 @@ else
             $formmail->withcancel=1;
             // Tableau des substitutions
             $formmail->substit['__SHIPPINGREF__']=$object->ref;
-            $formmail->substit['__SIGNATURE__']='';
+            $formmail->substit['__SIGNATURE__']=$user->signature;
             $formmail->substit['__PERSONALIZED__']='';
             // Tableau des parametres complementaires
             $formmail->param['action']='send';
diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php
index f4e5bba9f7f..7350e9df28a 100644
--- a/htdocs/fichinter/fiche.php
+++ b/htdocs/fichinter/fiche.php
@@ -1286,7 +1286,7 @@ else if ($id > 0 || ! empty($ref))
 
         // Tableau des substitutions
         $formmail->substit['__FICHINTERREF__']=$object->ref;
-        $formmail->substit['__SIGNATURE__']='';
+        $formmail->substit['__SIGNATURE__']=$user->signature;
         $formmail->substit['__PERSONALIZED__']='';
         // Tableau des parametres complementaires
         $formmail->param['action']='send';
diff --git a/htdocs/fourn/commande/fiche.php b/htdocs/fourn/commande/fiche.php
index 8519f13347e..21f93a08fcc 100644
--- a/htdocs/fourn/commande/fiche.php
+++ b/htdocs/fourn/commande/fiche.php
@@ -1687,7 +1687,7 @@ if ($id > 0 || ! empty($ref))
             $formmail->withcancel=1;
             // Tableau des substitutions
             $formmail->substit['__ORDERREF__']=$object->ref;
-            $formmail->substit['__SIGNATURE__']='';
+            $formmail->substit['__SIGNATURE__']=$user->signature;
             $formmail->substit['__PERSONALIZED__']='';
             // Tableau des parametres complementaires
             $formmail->param['action']='send';
diff --git a/htdocs/fourn/facture/fiche.php b/htdocs/fourn/facture/fiche.php
index 7b52aa440af..15588b02d79 100644
--- a/htdocs/fourn/facture/fiche.php
+++ b/htdocs/fourn/facture/fiche.php
@@ -1936,7 +1936,7 @@ else
             $formmail->withcancel=1;
             // Tableau des substitutions
             $formmail->substit['__FACREF__']=$object->ref;
-            $formmail->substit['__SIGNATURE__']='';
+            $formmail->substit['__SIGNATURE__']=$user->signature;
             $formmail->substit['__PERSONALIZED__']='';
             // Tableau des parametres complementaires
             $formmail->param['action']='send';
-- 
GitLab