From d7f67183c6d2378f613f1cf29dd8ee49e3aaf601 Mon Sep 17 00:00:00 2001 From: Normann Lou Date: Mon, 26 Jan 2009 20:32:26 +0000 Subject: [PATCH] git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@70734 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- email/Email.php | 9 +++++++++ forms/TableListField.php | 1 + 2 files changed, 10 insertions(+) diff --git a/email/Email.php b/email/Email.php index 47e3629eb..fed42ce80 100755 --- a/email/Email.php +++ b/email/Email.php @@ -745,6 +745,15 @@ class Email_BounceRecord extends DataObject { static $many_many = array(); static $defaults = array(); + + /** + * a record of Email_BounceRecord can't be created manually. Instead, it should be + * created though system. + */ + + public function canCreate($member = null) { + return false; + } } /** diff --git a/forms/TableListField.php b/forms/TableListField.php index 06f737c0e..e1f9fe4db 100755 --- a/forms/TableListField.php +++ b/forms/TableListField.php @@ -946,6 +946,7 @@ JS if($fieldItems) { foreach($fieldItems as $fieldItem) { $fields = $fieldItem->Fields(); + $columnData = array(); if($fields) foreach($fields as $field) { $value = $field->Value;