Fixed to correctly clean the index and timeline when needed.
This commit is contained in:
parent
78bc9a5466
commit
b3eb42817c
@ -123,6 +123,12 @@ class IDF_Commit extends Pluf_Model
|
||||
}
|
||||
}
|
||||
|
||||
function preDelete()
|
||||
{
|
||||
IDF_Timeline::remove($this);
|
||||
IDF_Search::remove($this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a commit from a simple class commit info of a changelog.
|
||||
*
|
||||
|
@ -143,6 +143,11 @@ class IDF_Issue extends Pluf_Model
|
||||
return Pluf_Text::cleanString(html_entity_decode($str, ENT_QUOTES, 'UTF-8'));
|
||||
}
|
||||
|
||||
function preDelete()
|
||||
{
|
||||
IDF_Timeline::remove($this);
|
||||
IDF_Search::remove($this);
|
||||
}
|
||||
|
||||
function preSave($create=false)
|
||||
{
|
||||
|
@ -98,6 +98,11 @@ class IDF_IssueComment extends Pluf_Model
|
||||
return $this->content;
|
||||
}
|
||||
|
||||
function preDelete()
|
||||
{
|
||||
IDF_Timeline::remove($this);
|
||||
}
|
||||
|
||||
function preSave($create=false)
|
||||
{
|
||||
if ($this->id == '') {
|
||||
|
Loading…
Reference in New Issue
Block a user