Edgewall Software

Ticket #4382 (new defect)

Opened 21 months ago

Last modified 4 months ago

&- character in ticket type with custom queries

Reported by: anonymous Owned by: cboos
Priority: normal Milestone: 0.13
Component: report system Version: 0.10.2
Severity: normal Keywords: query
Cc:

Description

If ticket type value has &-character, for example 'q&a', custom query filter does not work correctly.

When I first add type filter to custom query, the drop down box has value q&a. If I click update button, query finds nothing, and type value in drop down box is corrected to q&a. After that the query works correctly: it finds 'q&a' tickets and filter drop down box has correct value.

Wrong value in type filter appears only when type filter has been just added.

Attachments

Change History

in reply to: ↑ description   Changed 21 months ago by cboos

  • milestone set to 0.10.4

Replying to anonymous:

Wrong value in type filter appears only when type filter has been just added.

Yep, I've noticed that already while testing "&" in milestones, same problem.

  Changed 18 months ago by anonymous

The problem is that the HTML entities like & don't mean anything to JavaScript, so when query.js gets the option name it doesn't convert & back to &. Not sure what to do about this though...

  Changed 4 months ago by cboos

  • keywords query added
  • owner changed from mgood to cboos
  • severity changed from trivial to normal
  • milestone changed from 0.10.5 to 0.12

Problem happens also with query: links and TicketQuery ...

Add/Change #4382 (&- character in ticket type with custom queries)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change. Next status will be 'new'
The owner will change to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.