Remove the corresponding information from the timeline on deletion.
This commit is contained in:
@@ -154,6 +154,14 @@ class IDF_Upload extends Pluf_Model
|
||||
return Pluf::f('url_media').'/upload/'.$project->shortname.'/files/'.$this->file;
|
||||
}
|
||||
|
||||
/**
|
||||
* We drop the information from the timeline.
|
||||
*/
|
||||
function preDelete()
|
||||
{
|
||||
IDF_Timeline::remove($this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the timeline fragment for the file.
|
||||
*
|
||||
|
Reference in New Issue
Block a user