From: Steve Sutton Date: Mon, 7 Apr 2014 16:51:17 +0000 (+0000) Subject: add in referred_by to form X-Git-Tag: v1.0.0~13 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=f0662440df7617279a616e8ebdf9bf226c342c31;p=web%2FTroutCreek.git add in referred_by to form Grab the real referred by name for the form submittion to owner email --- 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';