projects
/
web
/
TroutCreek.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6307d1f
)
add in referred_by to form
author
Steve Sutton
<steve@gaslightmedia.com>
Mon, 7 Apr 2014 16:51:17 +0000
(16:51 +0000)
committer
Steve Sutton
<steve@gaslightmedia.com>
Mon, 7 Apr 2014 16:51:17 +0000
(16:51 +0000)
Grab the real referred by name for the form submittion to owner email
Toolkit/Contacts/ContactUs.php
patch
|
blob
|
history
diff --git
a/Toolkit/Contacts/ContactUs.php
b/Toolkit/Contacts/ContactUs.php
index
6e55b11
..
87d5f2c
100755
(executable)
--- 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';