summaryrefslogtreecommitdiffstats
path: root/app/models/query.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2018-05-12 05:42:27 +0000
committerGo MAEDA <maeda@farend.jp>2018-05-12 05:42:27 +0000
commit8ce031ef49495abd455c3b3965895ee0537c0cee (patch)
tree847f4d99cea5eebb805db0c247a75eb9cdd018c1 /app/models/query.rb
parentb68e141d6602ea6eadf39b6ed9fc3870d6970889 (diff)
downloadredmine-8ce031ef49495abd455c3b3965895ee0537c0cee.tar.gz
redmine-8ce031ef49495abd455c3b3965895ee0537c0cee.zip
Change default operator for text format custom fields from "is" to "contains" (#28660).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17331 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/query.rb')
-rw-r--r--app/models/query.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/query.rb b/app/models/query.rb
index 85de2f1a9..f78dd79d3 100644
--- a/app/models/query.rb
+++ b/app/models/query.rb
@@ -272,7 +272,7 @@ class Query < ActiveRecord::Base
:list_subprojects => [ "*", "!*", "=", "!" ],
:date => [ "=", ">=", "<=", "><", "<t+", ">t+", "><t+", "t+", "t", "ld", "w", "lw", "l2w", "m", "lm", "y", ">t-", "<t-", "><t-", "t-", "!*", "*" ],
:date_past => [ "=", ">=", "<=", "><", ">t-", "<t-", "><t-", "t-", "t", "ld", "w", "lw", "l2w", "m", "lm", "y", "!*", "*" ],
- :string => [ "=", "~", "!", "!~", "!*", "*" ],
+ :string => [ "~", "=", "!~", "!", "!*", "*" ],
:text => [ "~", "!~", "!*", "*" ],
:integer => [ "=", ">=", "<=", "><", "!*", "*" ],
:float => [ "=", ">=", "<=", "><", "!*", "*" ],