diff --git a/app/models/issue_query.rb b/app/models/issue_query.rb index 5b818cc2..f428c5d8 100644 --- a/app/models/issue_query.rb +++ b/app/models/issue_query.rb @@ -52,7 +52,12 @@ class IssueQuery < Query def initialize(attributes=nil, *args) super attributes - self.filters ||= { 'status_id' => {:operator => "o", :values => [""]} } +# self.filters ||= { 'status_id' => {:operator => "o", :values => [""]} } + + #gcm + self.filters ||= { 'subject' => {:operator => "~" , :values => [""] } } + #gcmend + end # Returns true if the query is visible to +user+ or the current user. diff --git a/app/models/query.rb b/app/models/query.rb index db6ca07a..550047c5 100644 --- a/app/models/query.rb +++ b/app/models/query.rb @@ -233,7 +233,13 @@ class Query < ActiveRecord::Base # filter requires one or more values (values_for(field) and !values_for(field).first.blank?) or # filter doesn't require any value - ["o", "c", "!*", "*", "t", "ld", "w", "lw", "l2w", "m", "lm", "y"].include? operator_for(field) + ["o", "c", "!*", "*", "t", "ld", "w", "lw", "l2w", "m", "lm", "y"].include? operator_for(field) or + + #gcm + #subject could be null + (field.eql?"subject") + #gcmend + end if filters end diff --git a/app/views/layouts/_base_footer.html.erb b/app/views/layouts/_base_footer.html.erb index 9df56ee2..ee7bcecf 100644 --- a/app/views/layouts/_base_footer.html.erb +++ b/app/views/layouts/_base_footer.html.erb @@ -11,16 +11,16 @@ 版权@2007~2014 - - + +