BUGFIX: $_POST[$this->Name] in TableField::SubmittedFieldSet are not always set

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@70695 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Normann Lou 2009-01-23 05:30:56 +00:00 committed by Sam Minnee
parent b48263a7ed
commit f71025aa40

View File

@ -223,7 +223,7 @@ class TableField extends TableListField {
function SubmittedFieldSet(&$sourceItems){
$fields = array ();
if($rows = $_POST[$this->name]){
if(isset($_POST[$this->name])&&$rows = $_POST[$this->name]){
if(count($rows)){
foreach($rows as $idx => $row){
if($idx == 'new'){