mirror of
https://github.com/redmine/redmine.git
synced 2026-07-07 17:13:29 +02:00
Fix totals not displayed in projects list view (#32896).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@19469 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -230,6 +230,24 @@ class ProjectsControllerTest < Redmine::ControllerTest
|
||||
)
|
||||
end
|
||||
|
||||
def test_index_with_int_custom_field_total
|
||||
@request.session[:user_id] = 1
|
||||
|
||||
field = ProjectCustomField.generate!(:field_format => 'int')
|
||||
CustomValue.create!(:customized => Project.find(1), :custom_field => field, :value => '2')
|
||||
CustomValue.create!(:customized => Project.find(2), :custom_field => field, :value => '7')
|
||||
get(
|
||||
:index,
|
||||
:params => {
|
||||
:display_type => 'list',
|
||||
:t => ["cf_#{field.id}"]
|
||||
}
|
||||
)
|
||||
assert_response :success
|
||||
assert_select '.query-totals'
|
||||
assert_select ".total-for-cf-#{field.id} span.value", :text => '9'
|
||||
end
|
||||
|
||||
def test_autocomplete_js
|
||||
get(
|
||||
:autocomplete,
|
||||
|
||||
Reference in New Issue
Block a user