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.
This commit is contained in:
parent
4bff745890
commit
628b01faf4
@ -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());
|
||||
|
@ -123,6 +123,7 @@ class IDF_IssueComment extends Pluf_Model
|
||||
$this->get_submitter());
|
||||
}
|
||||
}
|
||||
IDF_Search::index($this->get_issue());
|
||||
}
|
||||
|
||||
public function timelineFragment($request)
|
||||
|
Loading…
Reference in New Issue
Block a user