django / code.djangoproject.com

Configuration for Django's Trac instance (code.djangoproject.com)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

trac "pull requests" entry disappears when editing

davidszotten opened this issue · comments

Once i start typing in the "Comment" box and the preview appears, the "Pull Requests:" section of the summary box disappears.

Thought i was going crazy. Is this intentional?

Yeah, I can reproduce this.

I don't think it's intentional. The pull request section is added client-side by a piece of javascript and I suspect that when Trac generates the "draft" view of the ticket, it gets overriden.

Not easily fixed I'd guess, and probably not worth it, IMO.

The code that does the "draft" thing seems to be part of the "auto preview" trac plugin and can be found there: https://code.djangoproject.com/chrome/common/js/auto_preview.js

I suspect fixing this is just a matter of hooking into the right event and re-inserting the pull request information.