Removing notice-level errors

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@40909 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2007-08-27 05:07:43 +00:00
parent b747f9c42e
commit 281009b00f
2 changed files with 3 additions and 1 deletions

View File

@ -187,7 +187,7 @@ abstract class GenericDataAdmin extends LeftAndMain {
$actions->push(new FormAction('delete', 'Delete','ajaxAction-delete')); $actions->push(new FormAction('delete', 'Delete','ajaxAction-delete'));
} }
$required = (method_exists($genericData, getCMSRequiredField)) ? $genericData->getCMSRequiredField() : new RequiredFields(); $required = (method_exists($genericData, 'getCMSRequiredField')) ? $genericData->getCMSRequiredField() : new RequiredFields();
$form = new Form($this, "EditForm", $fields, $actions, $required); $form = new Form($this, "EditForm", $fields, $actions, $required);
if($this->stat('data_type_extra')) { if($this->stat('data_type_extra')) {
foreach ($this->stat('data_type_extra') as $oneRelated) { foreach ($this->stat('data_type_extra') as $oneRelated) {

View File

@ -201,6 +201,8 @@ class UserDefinedForm_Controller extends Page_Controller {
$recipientAddresses = array(); $recipientAddresses = array();
$sendCopy = false; $sendCopy = false;
$attachments = array();
$submittedFields = new DataObjectSet(); $submittedFields = new DataObjectSet();
foreach( $this->Fields() as $field ) { foreach( $this->Fields() as $field ) {
$submittedField = new SubmittedFormField(); $submittedField = new SubmittedFormField();