MINOR Tidied-up formatting

This commit is contained in:
mattclegg 2011-04-08 18:39:05 +01:00
parent a7a3dcb945
commit 8f8eab018c

View File

@ -643,7 +643,6 @@ JS
*/ */
function process($data, $form) { function process($data, $form) {
if($this->Fields()) {
Session::set("FormInfo.{$form->FormName()}.data",$data); Session::set("FormInfo.{$form->FormName()}.data",$data);
Session::clear("FormInfo.{$form->FormName()}.errors"); Session::clear("FormInfo.{$form->FormName()}.errors");
foreach($this->Fields() as $field) { foreach($this->Fields() as $field) {
@ -656,7 +655,6 @@ JS
){ ){
$form->addErrorMessage($field->Name,$field->getErrorMessage()->HTML(),'bad'); $form->addErrorMessage($field->Name,$field->getErrorMessage()->HTML(),'bad');
} }
} }
} }
@ -664,7 +662,6 @@ JS
Director::redirectBack(); Director::redirectBack();
return; return;
} }
}
$submittedForm = Object::create('SubmittedForm'); $submittedForm = Object::create('SubmittedForm');
$submittedForm->SubmittedByID = ($id = Member::currentUserID()) ? $id : 0; $submittedForm->SubmittedByID = ($id = Member::currentUserID()) ? $id : 0;