Defect #29701

Custom queries are broken by updating with nil parameter values

Added by Go MAEDA 16 days ago. Updated 12 days ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Go MAEDA% Done:

0%

Category:Issues
Target version:4.0.0
Resolution:Fixed Affected version:

Description

Steps to reproduce:

1. Open the issues list and move some columns to "Selected Columns" list box in the filter options. In the screenshot below, "Start date" and "Due date" is the column. You will see those 2 columns in the issues list.

2. Click "Apply" and save the query as a custom query.

3. Move to the gantt and apply the query by clicking the query name in the sidebar.

4. Click "Edit" to update the query.

5. Save the query without any change.

6. Go back to the issues list and apply the query. "Start date" and "Due date" should be in the list, but actually the selected columns in the query have been reset to default and you cannot see those 2 columns.

7. In addition, you no longer be able to change the selected columns of the query any longer after updating the query on gantt view. "Available columns" and "Selected columns" list boxes are grayed-out.

issues-list-1@2x.png (60.5 KB) Go MAEDA, 2018-10-01 04:06

issues-list-2@2x.png (49.8 KB) Go MAEDA, 2018-10-01 04:06

query-edit@2x.png (51.1 KB) Go MAEDA, 2018-10-01 04:06

bugfix-29701.patch Magnifier (3.78 KB) Mizuki ISHIKAWA, 2018-10-04 03:49

Associated revisions

Revision 17566
Added by Go MAEDA 13 days ago

Custom queries are broken by updating with nil parameter values (#29701).

Patch by Mizuki ISHIKAWA.

History

#1 Updated by Mizuki ISHIKAWA 13 days ago

I attached a patch to fix this detect.
Actually, not only the selected columns but also the same problem occurred in many columns such as sort_criteria and group_by.
bugfix-29701.patch also solves those problems.

#2 Updated by Go MAEDA 13 days ago

  • Target version set to Candidate for next minor release

#3 Updated by Go MAEDA 13 days ago

  • Subject changed from Updating a custom query on gantt view resets selected columns to default to Custom queries are broken by updating with nil parameter values
  • Assignee set to Go MAEDA
  • Target version changed from Candidate for next minor release to 4.0.0
  • Resolution set to Fixed

Committed the patch. Thank you for fixing the issue so quickly.

#4 Updated by Go MAEDA 12 days ago

  • Status changed from New to Closed

Also available in: Atom PDF