BUGFIX: error when creating a form

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@69973 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Saophalkun Ponlu 2009-01-12 01:48:29 +00:00 committed by Sam Minnee
parent 53e2a035f9
commit 9278f0ffe5

View File

@ -865,6 +865,8 @@ class Form extends RequestHandler {
*/
function getData() {
$dataFields = $this->fields->dataFields();
$data = array();
if($dataFields){
foreach($dataFields as $field) {
if($field->Name()) {