diff --git a/src/IDF/Commit.php b/src/IDF/Commit.php index f08ce6c..d4671eb 100644 --- a/src/IDF/Commit.php +++ b/src/IDF/Commit.php @@ -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. * diff --git a/src/IDF/Issue.php b/src/IDF/Issue.php index 76e1580..e0690e0 100644 --- a/src/IDF/Issue.php +++ b/src/IDF/Issue.php @@ -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) { diff --git a/src/IDF/IssueComment.php b/src/IDF/IssueComment.php index 97eca27..de3d2af 100644 --- a/src/IDF/IssueComment.php +++ b/src/IDF/IssueComment.php @@ -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 == '') {