Defect #28033
openUnable to turn off "For all projects" flag of custom queries
0%
Description
The "For all projects" flag of custom queries cannot be disabled if once enabled.
Steps to reproduce:- Create a query with "For all projects" flag enabled.
- Edit the newly created query.
- Uncheck "For all projects" checkbox and save the query.
- Edit the query again.
- "For all projects" checkbox is expected to be cleared, but it is actually checked.
Files
Related issues
Updated by Go MAEDA almost 7 years ago
It is because queries with "For all projects" enabled don't have the information of its belonging project.
The attribute IssueQuery.project
indicates the query's belonging project, but the value is nil for queries "for all projects" (nil means that the queriy is "For all projects"). Therefore, Redmine cannot determine the value to be set for the "project_id" attribute when "For all projects" is disabled, and project_id will remain nil even after saving the query. As a result, the "For all projects" never be turned off.
Updated by Aleksandar Pavic almost 5 years ago
+1 please see #32930 I've proposed a possible solution.
Updated by Go MAEDA almost 5 years ago
Aleksandar Pavic wrote:
+1 please see #32930 I've proposed a possible solution.
The following is the suggested solution in #32930#note-1:
One possible solution would be to show project select box, when All projects is unchecked.
Updated by Go MAEDA almost 5 years ago
- Has duplicate Defect #32930: Unable to uncheck "All projects" in saved issue filter query added
Updated by Yuichi HARADA almost 3 years ago
- File before.png before.png added
- File after.png after.png added
- File 28033.patch 28033.patch added
You become able to switch "For all projects" and the current project on the custom query edit form. I have attached a patch.
Current trunk(r21364)
After applying the patch
Updated by Go MAEDA almost 3 years ago
- Target version set to Candidate for next major release
Updated by Go MAEDA over 1 year ago
- File 28033-v2.patch 28033-v2.patch added
Updated the patch for the current trunk (r22174).
Updated by Mischa The Evil about 1 year ago
- Has duplicate Defect #38410: An authorized user should be able to remove 'For all projects' in a saved issue query added