Fixed issue 183, project can not be deleted because of foreign key integrity constraints.

This commit is contained in:
Loic d'Anterroches
2009-04-16 13:27:41 +02:00
parent b9773b555c
commit 1656c99a48
3 changed files with 22 additions and 0 deletions

View File

@@ -160,6 +160,7 @@ class IDF_Upload extends Pluf_Model
function preDelete()
{
IDF_Timeline::remove($this);
@unlink(Pluf::f('upload_path').'/'.$this->project->shortname.'/files/'.$this->file);
}
/**