Handle csv columns selection in query to preload appropriate associations (#24865).

git-svn-id: http://svn.redmine.org/redmine/trunk@16219 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2017-01-18 12:51:41 +00:00
parent 3c0c16901c
commit d10ab869a7
6 changed files with 20 additions and 24 deletions

View File

@@ -985,9 +985,10 @@ class TimelogControllerTest < Redmine::ControllerTest
assert_select 'input[name=?][value=?]', 'op[spent_on]', '>='
assert_select 'input[name=?][value=?]', 'v[spent_on][]', '2007-04-01'
# columns
assert_select 'input[name=?][value=?]', 'c[]', 'spent_on'
assert_select 'input[name=?][value=?]', 'c[]', 'user'
assert_select 'input[name=?]', 'c[]', 2
assert_select 'input[name=?][type=hidden][value=?]', 'c[]', 'spent_on'
assert_select 'input[name=?][type=hidden][value=?]', 'c[]', 'user'
assert_select 'input[name=?][type=hidden]', 'c[]', 2
assert_select 'input[name=?][value=?]', 'c[]', 'all_inline'
end
end
end