Edgewall Software

Opened 18 years ago

Closed 18 years ago

#878 closed defect (fixed)

Field "resolution" is disabled incorrectly on Advanced Query screen

Reported by: pkou <pkou at ua.fm> Owned by: Christopher Lenz
Priority: low Milestone: 0.8
Component: ticket system Version: devel
Severity: minor Keywords: query
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:


Filtering tickets by field Resolution depends on the statuses that are selected by user in field Status. This is because field resolution is empty when a ticket has status new, assigned, or reopened.

Current implementation enables field Resolution if no statuses are selected or when status closed is selected. This is incorrect because when user selects closed and other status like new, the field Resolution is still enabled, and using it leads to empty screens.

Proposed implementation: Enable field Resolution if no statuses are selected or statuses new, assigned, and reopened are not selected.

Patch attached.

Attachments (1)

patch-queryres-r1014.diff (1.0 KB ) - added by pkou <pkou at ua.fm> 18 years ago.
Patch for the defect

Download all attachments as: .zip

Change History (3)

by pkou <pkou at ua.fm>, 18 years ago

Attachment: patch-queryres-r1014.diff added

Patch for the defect

comment:1 by Christopher Lenz, 18 years ago

Component: report systemticket system
Keywords: query added
Milestone: 0.8
Owner: changed from daniel to Christopher Lenz
Priority: normallow
Severity: normalminor
Status: newassigned

Good catch.

I'd like to avoid hardcoding the resolution names in the script. If we can depend on the order of the status values (which pretty much is a given in the current codebase), a simple check for selectedIndex >= 3 should be enough, and more compact.

comment:2 by Christopher Lenz, 18 years ago

Resolution: fixed
Status: assignedclosed

Fixed in [1017].

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christopher Lenz to the specified user.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.