Fixed: empty list for user/version custom fields on bulk edit form (#2096).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5354 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
406aa946e5
commit
d0ea5fae62
6 files changed
+46
-5
No files matched your search
@@ -58,6 +58,8 @@ class CustomField < ActiveRecord::Base
|
||||
when 'version'
|
||||
obj.project.versions.sort.collect {|u| [u.to_s, u.id.to_s]}
|
||||
end
|
||||
elsif obj.is_a?(Array)
|
||||
obj.collect {|o| possible_values_options(o)}.inject {|memo, v| memo & v}
|
||||
else
|
||||
[]
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user