From ac1cfd3d239d1ad4b0db55668fe2c3601564e86f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 19 Jan 2013 15:12:18 +0100 Subject: [PATCH] Fix: [ bug #666 ] Fatal error when sending intervention card --- htdocs/fichinter/fiche.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php index bd9d225d4e7..5f24f001f35 100644 --- a/htdocs/fichinter/fiche.php +++ b/htdocs/fichinter/fiche.php @@ -516,8 +516,8 @@ if ($action == 'send' && ! GETPOST('cancel','alpha') && (empty($conf->global->MA } else // Id du contact { - $sendto = $object->client->contact_get_email(GETPOST('receiver','alpha')); - $sendtoid = GETPOST('receiver','alpha'); + $sendto = $object->client->contact_get_property(GETPOST('receiver'),'email'); + $sendtoid = GETPOST('receiver','alpha'); } }