Fixed the indexing for the issues.

It was not indexing the content correctly when creating the issue as the
content of the issue was not yet stored in the database.
dev
Loic d'Anterroches 2008-11-26 10:08:51 +01:00
parent 4bff745890
commit 628b01faf4
2 changed files with 5 additions and 1 deletions

View File

@ -159,7 +159,10 @@ class IDF_Issue extends Pluf_Model
function postSave($create=false)
{
IDF_Search::index($this);
// Note: No indexing is performed here. The indexing is
// triggered in the postSave step of the comment to ensure
// that the issue as at least one comment in the database when
// doing the indexing.
if ($create) {
IDF_Timeline::insert($this, $this->get_project(),
$this->get_submitter());

View File

@ -123,6 +123,7 @@ class IDF_IssueComment extends Pluf_Model
$this->get_submitter());
}
}
IDF_Search::index($this->get_issue());
}
public function timelineFragment($request)