#10858 closed defect (fixed)
Template isn't loaded for NewTicket in Trac 1.0
Reported by: | Rochi | Owned by: | Richard Liao |
---|---|---|---|
Priority: | normal | Component: | TracTicketTemplatePlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 1.0 |
Description
Depends on Trac 1.0.x
If you create a new ticket in Trac 1.0 tickettemplate doesn't load the template. You have first to switch the ticket type to throw a change event.
The problem is located in line 338 in tt_newticket.js:
if ($("#ticket.ticketdraft").length && isLoad) { // reset isLoad isLoad = false; return; }
you have to change it to:
if ($("#ticket.ticketdraft").css('display') != 'none' && isLoad) { // reset isLoad isLoad = false; return; }
Maybe you have to modify my patch to support Trac 0.12 and Trac 1.0
Attachments (0)
Change History (8)
comment:2 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
It is fixed per the testing I've done.
comment:3 follow-up: 7 Changed 11 years ago by
Is it okay if I bump the version to 0.8? Keeping it at 0.7 for so long is causing confusion. It would also be useful to modify the setup.cfg
file to append the SVN revision to the egg, like the one here (though I see that's been commented out in your setup.cfg
).
comment:4 follow-up: 8 Changed 11 years ago by
It would also be good to make this change as a preventive measure, to avoid conflicts:
-$(document).ready(function() { - $("body").tt_newticket(); -}); +jQuery(document).ready(function($) { + $("body").tt_newticket(); +});
comment:7 Changed 11 years ago by
Replying to rjollos:
Is it okay if I bump the version to 0.8? Keeping it at 0.7 for so long is causing confusion. It would also be useful to modify the
setup.cfg
file to append the SVN revision to the egg, like the one here (though I see that's been commented out in yoursetup.cfg
).
Yeah tag_svn_revision = true
was commented out in setup.cfg accidentally an is a mistake. It occurred on this change: [1334]
Maybe this is fixed in [13260]?