Issue Details (XML | Word | Printable)

Key: CONF-8489
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Paul Curren [Atlassian]
Reporter: Joshua Wold [Atlassian]
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Confluence

Dynamic Tasklist does not work with a "-" sign in the Title of the Tasklist

Created: 11/May/07 06:48 PM   Updated: 30/May/08 03:31 AM
Component/s: Macros - Dynamic Tasklist
Affects Version/s: 2.5
Fix Version/s: 2.5.3, 2.6.0

Time Tracking:
Not Specified

Environment: Mac OS X, Firefox Broswer, Version: 2.5 Build:#805 Apr 29, 2007

Participants: Joshua Wold [Atlassian] and Paul Curren [Atlassian]
Since last comment: 1 year, 32 weeks, 3 days ago
Resolution Date: 28/May/07 01:40 AM
Labels:


 Description  « Hide
The dynamic TaskList Macro works great... unless you push a hyphen or dash sign in the title of the Task List. The list still appears on the page, but doesn't allow any tasks to be added to the list.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Paul Curren [Atlassian] added a comment - 27/May/07 10:42 PM
The problem here is that the task list name is used to automatically generate Javascript variable names in the page. Names beginning in a '-' result in bad Javascript syntax
e.g.
var -testvariable = new Tasklist('-testvariable')

The fix for this issue is probably to automatically trim all invalid characters from the start of a todo list name.


Paul Curren [Atlassian] added a comment - 28/May/07 01:40 AM
Tested manually using dynamictasklists called -
  • 123MyList
  • 123
  • paul2curren
  • -hello
  • hello
  • he+12llo+
  • Joe Blow 17/03/1948

All passed.