プロジェクト

全般

プロフィール

Vote #79087

未完了

Unable to turn off "For all projects" flag of custom queries

Admin Redmine さんがほぼ4年前に追加. ほぼ4年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Issues_2
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
2
version_id:
32
issue_org_id:
28033
author_id:
332
assigned_to_id:
0
comments:
7
status_id:
1
tracker_id:
1
plus1:
2
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

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.


journals

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.

--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1 please see #32930 I've proposed a possible solution.
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
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)
!{width:300px;border:1px solid grey;}before.png!

After applying the patch
!{width:300px;border:1px solid grey;}after.png!

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

duplicates,Closed,32930,Unable to uncheck "All projects" in saved issue filter query

Admin Redmine さんがほぼ4年前に更新

  • カテゴリIssues_2 にセット
  • 対象バージョンCandidate for next major release_32 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0