MINOR Fixed crazy messed up indentation in TableField

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@59518 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2008-07-30 06:40:17 +00:00
parent 92d91c0fd2
commit 3a817610bc

View File

@ -356,9 +356,7 @@ class TableField extends TableListField {
if($dataObjects) { if($dataObjects) {
foreach ($dataObjects as $objectid => $fieldValues) { foreach ($dataObjects as $objectid => $fieldValues) {
// we have to "sort" new data first, and process it in a seperate saveData-call (see setValue()) // we have to "sort" new data first, and process it in a seperate saveData-call (see setValue())
if($objectid === "new") { if($objectid === "new") continue;
continue;
}
// extra data was creating fields, but // extra data was creating fields, but
if($this->extraData) { if($this->extraData) {
@ -411,6 +409,8 @@ class TableField extends TableListField {
} }
return $savedObj; return $savedObj;
} else {
return false;
} }
} }
@ -664,7 +664,7 @@ class TableField_Item extends TableListField_Item {
$field->Name = $combinedFieldName; $field->Name = $combinedFieldName;
$field->setValue($field->dataValue()); $field->setValue($field->dataValue());
$field->addExtraClass('col'.$i); $field->addExtraClass('col'.$i);
$field->setForm($this->Parent()->getForm()); $field->setForm($this->data);
// transformation // transformation
if(isset($this->parent->transformationConditions[$origFieldName])) { if(isset($this->parent->transformationConditions[$origFieldName])) {