From f0662440df7617279a616e8ebdf9bf226c342c31 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Mon, 7 Apr 2014 16:51:17 +0000 Subject: [PATCH] add in referred_by to form Grab the real referred by name for the form submittion to owner email --- Toolkit/Contacts/ContactUs.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Toolkit/Contacts/ContactUs.php b/Toolkit/Contacts/ContactUs.php index 6e55b11..87d5f2c 100755 --- a/Toolkit/Contacts/ContactUs.php +++ b/Toolkit/Contacts/ContactUs.php @@ -851,6 +851,12 @@ $e[] = array( } } + if ($this->elementExists('referred_by')) { + // Clean up the mail_ok flag so its human readable + $page->formData['referred_by']['element'] + = $this->referred_by[$page->formData['referred_by']['element']]; + } + if ($this->elementExists('mail_ok')) { // Clean up the mail_ok flag so its human readable $page->formData['mail_ok']['label'] = 'Emails'; -- 2.17.1