From 0c38470eb129736d09c4407a50d4032ccdcbc277 Mon Sep 17 00:00:00 2001 From: GoZ Date: Wed, 18 Sep 2013 15:34:53 +0200 Subject: [PATCH] Issue #1924950 by GoZ: Entityform tokens doesn't use good entity to format mail datas --- entityform.module | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/entityform.module b/entityform.module index 92a0133..2735e96 100644 --- a/entityform.module +++ b/entityform.module @@ -183,7 +183,8 @@ function entityform_token_info_alter(&$data) { function entityform_tokens($type, $tokens, array $data = array(), array $options = array()) { $replacements = array(); if ($type == 'entityform' && !empty($data['entityform'])) { - $entityform = $data['entityform']; + // Get entity data and not form entity + $entityform = array_shift(entity_load($type, array($data['entityform']->entityform_id))); foreach ($tokens as $name => $original) { switch ($name) { case 'entityform-submittd-data': -- 1.7.5.4