From: Go MAEDA Date: Thu, 27 Jun 2024 04:46:27 +0000 (+0000) Subject: Expose project updated_on column and filter in project query (#40829). X-Git-Tag: 6.0.0~282 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f82d8314d959baa1573286d9563b6108c9f986f5;p=redmine.git Expose project updated_on column and filter in project query (#40829). Patch by Felix Schäfer (@felix). git-svn-id: https://svn.redmine.org/redmine/trunk@22899 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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