From f82d8314d959baa1573286d9563b6108c9f986f5 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Thu, 27 Jun 2024 04:46:27 +0000 Subject: [PATCH] Expose project updated_on column and filter in project query (#40829). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Patch by Felix Schäfer (@felix). git-svn-id: https://svn.redmine.org/redmine/trunk@22899 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/project_query.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/project_query.rb b/app/models/project_query.rb index dde3e9cc1..a1bb52a2c 100644 --- a/app/models/project_query.rb +++ b/app/models/project_query.rb @@ -37,6 +37,7 @@ class ProjectQuery < Query QueryColumn.new(:parent_id, :sortable => "#{Project.table_name}.lft ASC", :default_order => 'desc', :caption => :field_parent), QueryColumn.new(:is_public, :sortable => "#{Project.table_name}.is_public", :groupable => true), QueryColumn.new(:created_on, :sortable => "#{Project.table_name}.created_on", :default_order => 'desc'), + QueryColumn.new(:updated_on, :sortable => "#{Project.table_name}.updated_on", :default_order => 'desc'), QueryColumn.new(:last_activity_date) ] @@ -78,6 +79,7 @@ class ProjectQuery < Query :values => [[l(:general_text_yes), "1"], [l(:general_text_no), "0"]] ) add_available_filter "created_on", :type => :date_past + add_available_filter "updated_on", :type => :date_past add_custom_fields_filters(project_custom_fields) end -- 2.39.5