Changeset 24132
- Timestamp:
- 11/18/09 12:59:02 (4 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.3/lib/plugins/sfDoctrinePlugin/lib/form/sfFormDoctrine.class.php
r24068 r24132 267 267 if (!$values[$field]) 268 268 { 269 // this is needed if the form is embedded, in which case 270 // the parent form has already changed the value of the field 269 271 $oldValues = $this->getObject()->getModified(true, false); 270 272 271 return isset($oldValues[$field]) ? $oldValues[$field] : '';273 return isset($oldValues[$field]) ? $oldValues[$field] : $this->object->$field; 272 274 } 273 275 branches/1.4/lib/plugins/sfDoctrinePlugin/lib/form/sfFormDoctrine.class.php
r24068 r24132 267 267 if (!$values[$field]) 268 268 { 269 // this is needed if the form is embedded, in which case 270 // the parent form has already changed the value of the field 269 271 $oldValues = $this->getObject()->getModified(true, false); 270 272 271 return isset($oldValues[$field]) ? $oldValues[$field] : '';273 return isset($oldValues[$field]) ? $oldValues[$field] : $this->object->$field; 272 274 } 273 275