Modify

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#7161 closed defect (invalid)

Version drop-list not populated with all versions

Reported by: derek.hoyle@… Owned by: Malcolm Studd
Priority: normal Component: ExtendedVersionPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

The "Version" drop-list in the Edit Milestone page is only populated with versions that contain alpha-numeric and '.'. '/' and '?' seem to break it, so the list stops at the first version that contains '/' or '?'. Subsequent "good" versions are also omitted, so I guess it drops out at the first occurrence.

I haven't tried any other characters. We just happen to have a few versions with '/' and '?'.

Attachments (1)

version-names.png (14.5 KB) - added by Malcolm Studd 14 years ago.

Download all attachments as: .zip

Change History (5)

Changed 14 years ago by Malcolm Studd

Attachment: version-names.png added

comment:1 Changed 14 years ago by Malcolm Studd

Seems to work for me: attachment:version-names.png

It sounds like Genshi is generating bad markup. What version of Genshi do you have installed?

Do the versions all appear in the drop-down for tickets?

comment:2 Changed 14 years ago by derek.hoyle@…

Here's my environment:

Trac: 0.11.7 Python: 2.5.2 (r252:60911, Jan 24 2010, 15:24:24) [GCC 4.3.2] setuptools: 0.6c9 SQLite: 3.5.9 pysqlite: 2.4.1 Genshi: 0.5.1 mod_python: 3.3.1 Pygments: 0.10 Subversion: 1.5.1 (r32289) jQuery: 1.2.6

comment:3 Changed 14 years ago by derek.hoyle@…

Resolution: invalid
Status: newclosed
Summary: Version drop-list not populated if versions contain certain charactersVersion drop-list not populated with all versions

Got it! This is a complete red herring - sorry for the trouble.

It was just a coincidence that all "clean" versions had future dates, and all the unusual ones had past dates (because they are real releases that happened). Each time you edit a version with no date, Trac populates the date with "NOW". So every new one I added or old one I changed got "NOW", and promptly disappeared.

So, it seems that only a future version can be added to a milestone. That makes perfect sense.

Thanks for your time, and keep up the good work. This is a very useful plug-in.

comment:4 in reply to:  3 Changed 14 years ago by Malcolm Studd

Replying to derek.hoyle@embeduk.com:

Each time you edit a version with no date, Trac populates the date with "NOW". So every new one I added or old one I changed got "NOW", and promptly disappeared.

Yup, I almost got caught by that investigating this. It's kind of annoying.

Thanks for your time, and keep up the good work. This is a very useful plug-in.

Thanks!

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Malcolm Studd.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.