Adds description field to custom queries (#9309).

Patch by Go MAEDA (@maeda).


git-svn-id: https://svn.redmine.org/redmine/trunk@22855 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu
2024-06-04 20:04:45 +00:00
parent c19176a5c4
commit 38a8adb2a2
20 changed files with 117 additions and 7 deletions

View File

@@ -1682,14 +1682,14 @@ class TimelogControllerTest < Redmine::ControllerTest
end
def test_index_with_query
query = TimeEntryQuery.new(:project_id => 1, :name => 'Time Entry Query', :visibility => 2)
query = TimeEntryQuery.new(:project_id => 1, :name => 'Time Entry Query', :description => 'Description for Time Entry Query', :visibility => 2)
query.save!
@request.session[:user_id] = 2
get :index, :params => {:project_id => 'ecookbook', :query_id => query.id}
assert_response :success
assert_select 'h2', :text => query.name
assert_select '#sidebar a.selected', :text => query.name
assert_select '#sidebar a.query.selected[title=?]', query.description, :text => query.name
end
def test_index_atom_feed