Fixed bug when root==self, and root had parents. Refs #8993.
Fixed bug when root==self, and root had parents. Refs #8993.

When root==self, the current ticket's id couldn't appear in root
because root equaled 'self' rather then the id it represents.
This fix checks the current ticket's id when root==self.

git-svn-id: 2159781fc7c14c6bdd1f7e265daf7a25099c31e7@10529 7322e99d-02ea-0310-aa39-e9a107903beb

trac-hacks/trac-jsGantt,trac-hacks/trac-jsGantt,trac-hacks/trac-jsGantt