On Friday, December 21, 2012 10:10:11 AM UTC-8, gctrekker wrote: > I am not sure how the blank entry got into the milestone table but > removing it worked. > The Custom Query filter is now working with the Milestone field > correctlly. >
Trac protects against adding a milestone with an empty string as the name (at least in recent version, and I can't imagine this was ever allowed nor did I find any tickets associated with a defect such as this). I tried to reproduced your issue by editing an SQLite db directly. After adding a milestone with an empty string as a name, I initially see "Milestone does not exist" when navigating to /query. I did something different at some point (perhaps clearing "milestone" for the last query?), and now I get the same behavior as you when navigating to the /query page. I select the milestone drop-down, but milestone select list does not appear. There is a not-too-surprising error in the console: Uncaught TypeError: Cannot read property 'value' of null. As you did, I also get "No milestone selected" when trying to delete this milestone form the /admin/ticket/milestones page. I can see the milestone on the roadmap, but clicking on it just redirects to the /roadmap (not surprising if you look at the code). Without knowing how that milestone was added into your table, I don't know that there is anything we can do to make Trac more robust. It doesn't seem worthwhile to try to protect against every possible error that could be introduced when the tables are edited directly, and unless you can figure out a way to get that milestone with an empty string as a name into the table /through/ a Trac interface, we'll have to assume it got there by directly editing the table. -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/trac-users/-/qgpF3inCLZoJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
