Fixed issue 183, project can not be deleted because of foreign key integrity constraints.
This commit is contained in:
@@ -123,4 +123,9 @@ class IDF_IssueFile extends Pluf_Model
|
||||
}
|
||||
$this->modif_dtime = gmdate('Y-m-d H:i:s');
|
||||
}
|
||||
|
||||
function preDelete()
|
||||
{
|
||||
@unlink(Pluf::f('upload_issue_path').'/'.$this->attachment);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user