プロジェクト

全般

プロフィール

Vote #75958

完了

Grouping of Boolean field in Query: group not displayed for "No" value if the group is in first position

Admin Redmine さんが4年以上前に追加. 4年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Custom fields_14
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
14
version_id:
89
issue_org_id:
18896
author_id:
119181
assigned_to_id:
1
comments:
7
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
75
ステータス-->[Closed]

説明

When I submit the query with "Group results by" the boolean field which is defined as "required" , collapse/expand indicator line for "No" is not displayed.

  • Tickets are distinguished into 2 groups, one for "No" and the other for "Yes". OK.
  • But collapse/expand indicator line for "No" is not displayed. It should be displayed, I think. ** On the other hand, collapse/expand indicator line for "Yes" is displayed. OK.

I'd appreciate if this issue is picked up and will be examined/fixed.

Kind regards,


  • Reported version Redmine 2.5.0.stable. Details are as follows. # Test redmine (Windows7)
    Environment:
    Redmine version                2.5.0.stable
    Ruby version                   1.9.3-p231 (2012-05-25) [i386-mingw32]
    Rails version                  3.2.17
    Environment                    production
    Database adapter               Mysql2
    
    # Production redmine (Linux)
    Environment:
    Redmine version                2.5.0.stable
    Ruby version                   1.9.3-p484 (2013-11-22) [x86_64-linux]
    Rails version                  3.2.17
    Environment                    production
    Database adapter               PostgreSQL
    

Note: This phenomena does not happen with a boolean field which is not defined as "required". In this case, 3 collapse/expand indicator lines are displayed (with misleading labels ( see #18894 ) when this ticket is created).


journals

*Screen capture*
Here is a screen capture of query-result grouped by boolean field.
In the picture, Boolean2required is a boolean filed with "required" specification.
You could see 2 groups of tickets, one for "No" and the other is "Yes".
But "No" tickets do not have collapse/expand indicator line of "No" at the top of the tickets. "Yes" tickets have one for "Yes".
--------------------------------------------------------------------------------
I cannot reproduce on version:2.6.1.

!2.6.1.png!
--------------------------------------------------------------------------------
Toshi MARUYAMA wrote:
> I cannot reproduce on version:2.6.1.

Thank you for your quick reply.

According to the picture attached, it seems the boolean field has an attribute of "Not REQUIRED" because the list is grouped in 3 groups, 2 of "none" and 1 of "Yes".
As I write in the description, the phenomena happens if the boolean fields is defined as "Required", ie. Values are only 2 variations of "Yes" and "No".

--------------------------------------------------------------------------------
Confirmed.

!2.6.1-confirmed.png!
--------------------------------------------------------------------------------
Toshi MARUYAMA wrote:
> Confirmed.

Thank you.

--------------------------------------------------------------------------------
Fixed in r13922, thanks for pointing this out.
--------------------------------------------------------------------------------

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

Admin Redmine さんが4年以上前に更新

  • カテゴリCustom fields_14 にセット
  • 対象バージョン2.6.2_89 にセット

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

いいね!0
いいね!0