Skip to content

Commit

Permalink
Fixes bug #380. Removing a file now works as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
cd-jenkins-bot authored and Alistair Kearney committed Aug 5, 2010
1 parent 5181929 commit e49258f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions symphony/lib/toolkit/fields/field.upload.php
Expand Up @@ -373,6 +373,16 @@ public function processRawFieldData($data, &$status, $simulate=false, $entry_id=

$status = self::__OK__;

//fixes bug where files are deleted, but their database entries are not.
if($data === NULL){
return array(
'file' => NULL,
'mimetype' => NULL,
'size' => NULL,
'meta' => NULL
);
}

## Its not an array, so just retain the current data and return
if(!is_array($data)){

Expand Down

0 comments on commit e49258f

Please sign in to comment.