Project

General

Profile

Actions

Feature #22147

closed

Change "Related issues" label for generic grouped query filters

Added by Sebastian Paluch almost 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Category:
UI
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

The helper added to group filters of ":tree" and ":relation" type uses ":label_related_issues" as group label.

module QueriesHelper
  include ApplicationHelper

  def filters_options_for_select(query)
    ungrouped = []
    grouped = {}
    query.available_filters.map do |field, field_options|
      if [:tree, :relation].include?(field_options[:type]) 
        group = :label_related_issues
      elsif field =~ /^(.+)\./
        # association filters

This is not OK as the helper is for all queries, not only for Issue queries. I my case I have a project query and group title "Related issues" does not match.

I would like to propose creating new, more generic label e.g. "label_related: Related".


Related issues

Related to Redmine - Feature #13849: Grouped filters in the filter drop-downClosedJean-Philippe Lang

Actions
Related to Redmine - Feature #6118: Filter by parent task or subtasksClosedJean-Philippe Lang2010-08-12

Actions
Actions

Also available in: Atom PDF