From 98cd140a19566ed3b5532364c59c79d4ee2ff2f0 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 16 Feb 2013 09:39:52 +0000 Subject: [PATCH] Makes closed_on available as column and filter on the issue list (#824). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11403 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/issue_query.rb | 2 ++ config/locales/en.yml | 1 + config/locales/fr.yml | 1 + 3 files changed, 4 insertions(+) diff --git a/app/models/issue_query.rb b/app/models/issue_query.rb index 1959c3ea3..3ca31db9a 100644 --- a/app/models/issue_query.rb +++ b/app/models/issue_query.rb @@ -36,6 +36,7 @@ class IssueQuery < Query QueryColumn.new(:estimated_hours, :sortable => "#{Issue.table_name}.estimated_hours"), QueryColumn.new(:done_ratio, :sortable => "#{Issue.table_name}.done_ratio", :groupable => true), QueryColumn.new(:created_on, :sortable => "#{Issue.table_name}.created_on", :default_order => 'desc'), + QueryColumn.new(:closed_on, :sortable => "#{Issue.table_name}.closed_on", :default_order => 'desc'), QueryColumn.new(:relations, :caption => :label_related_issues), QueryColumn.new(:description, :inline => false) ] @@ -145,6 +146,7 @@ class IssueQuery < Query add_available_filter "subject", :type => :text add_available_filter "created_on", :type => :date_past add_available_filter "updated_on", :type => :date_past + add_available_filter "closed_on", :type => :date_past add_available_filter "start_date", :type => :date add_available_filter "due_date", :type => :date add_available_filter "estimated_hours", :type => :float diff --git a/config/locales/en.yml b/config/locales/en.yml index 95793fc4b..39583b583 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -229,6 +229,7 @@ en: field_author: Author field_created_on: Created field_updated_on: Updated + field_closed_on: Closed field_field_format: Format field_is_for_all: For all projects field_possible_values: Possible values diff --git a/config/locales/fr.yml b/config/locales/fr.yml index cf7280fec..d9d79938b 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -238,6 +238,7 @@ fr: field_author: Auteur field_created_on: "Créé " field_updated_on: "Mis-à-jour " + field_closed_on: Fermé field_field_format: Format field_is_for_all: Pour tous les projets field_possible_values: Valeurs possibles -- 2.39.5