Development

Changeset 24269

You must first sign up to be able to contribute.

Changeset 24269

Show
Ignore:
Timestamp:
11/23/09 15:20:44 (5 years ago)
Author:
fabien
Message:

[1.2] fixed sfWidgetFormInputFileEditable (closes #7621)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.2/lib/plugins/sfDoctrinePlugin/lib/form/sfFormDoctrine.class.php

    r23977 r24269  
    457457    if (!$values[$field]) 
    458458    { 
     459      // this is needed if the form is embedded, in which case  
     460      // the parent form has already changed the value of the field 
    459461      $oldValues = $this->getObject()->getModified(true, false); 
    460462 
    461       return isset($oldValues[$field]) ? $oldValues[$field] : ''
     463      return isset($oldValues[$field]) ? $oldValues[$field] : $this->object->$field
    462464    } 
    463465