diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-06-26 19:30:36 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-06-26 19:30:36 +0000 |
commit | f3523f25fd9714c462076ce202d5d6d09e192c26 (patch) | |
tree | 2b331841ccf3598cb1526718322b076932dbbf03 /test/functional | |
parent | 9fbf4de6534b36b8ddc8c1baa8279f3b619178e6 (diff) | |
download | redmine-f3523f25fd9714c462076ce202d5d6d09e192c26.tar.gz redmine-f3523f25fd9714c462076ce202d5d6d09e192c26.zip |
Fixed that time entry queries cannot be saved when issue tracking is disabled (#14790).
git-svn-id: http://svn.redmine.org/redmine/trunk@16718 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/queries_controller_test.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/functional/queries_controller_test.rb b/test/functional/queries_controller_test.rb index 03fb7bef1..4aac31540 100644 --- a/test/functional/queries_controller_test.rb +++ b/test/functional/queries_controller_test.rb @@ -77,6 +77,17 @@ class QueriesControllerTest < Redmine::ControllerTest assert_select 'input[name=type][value=?]', 'TimeEntryQuery' end + def test_new_time_entry_query_with_issue_tracking_module_disabled_should_be_allowed + Project.find(1).disable_module! :issue_tracking + + @request.session[:user_id] = 2 + get :new, :params => { + :project_id => 1, + :type => 'TimeEntryQuery' + } + assert_response :success + end + def test_create_project_public_query @request.session[:user_id] = 2 post :create, :params => { |