diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-06-04 07:19:27 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-06-04 07:19:27 +0000 |
commit | 3b3478b8a3a3160ef9cdefa205a1ca85f7d2ef08 (patch) | |
tree | 170cbfcd1a547263f5d2edb8830a5220612c850a /lib/redmine | |
parent | 9d957ff7a8873ab84951f32e4813f39b8d71eac9 (diff) | |
download | redmine-3b3478b8a3a3160ef9cdefa205a1ca85f7d2ef08.tar.gz redmine-3b3478b8a3a3160ef9cdefa205a1ca85f7d2ef08.zip |
Merged r15429 (#22911).
git-svn-id: http://svn.redmine.org/redmine/branches/3.2-stable@15439 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine')
-rw-r--r-- | lib/redmine/field_format.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/field_format.rb b/lib/redmine/field_format.rb index b2aa67931..19e5be5ad 100644 --- a/lib/redmine/field_format.rb +++ b/lib/redmine/field_format.rb @@ -715,7 +715,7 @@ module Redmine end def value_from_keyword(custom_field, keyword, object) - value = custom_field.enumerations.where("LOWER(name) LIKE LOWER(?)", keyword) + value = custom_field.enumerations.where("LOWER(name) LIKE LOWER(?)", keyword).first value ? value.id : nil end end |