From d4d53acf40e6e6013b9e7f727767d2afff9e4572 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Sun, 19 Apr 2009 23:26:43 +0000 Subject: [PATCH] MINOR: restored deleted action --- code/UserDefinedForm.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/code/UserDefinedForm.php b/code/UserDefinedForm.php index eeb3b9b..91aa5f3 100755 --- a/code/UserDefinedForm.php +++ b/code/UserDefinedForm.php @@ -380,11 +380,15 @@ class UserDefinedForm_Controller extends Page_Controller { $submittedField->Value = ""; } $submittedField->write(); - } - + } break; } } + elseif($field->hasMethod('getValueFromData')) { + $values[$field->Title] = Convert::linkIfMatch($field->getValueFromData($data)); + } else { + if(isset($data[$field->Name])) $values[$field->Title] = Convert::linkIfMatch($data[$field->Name]); + } } $emailData = array( "Sender" => Member::currentUser(),