##// END OF EJS Templates
Merged r11064 from trunk (#12652)....
Jean-Philippe Lang -
r10913:b0ccaffe1bfd
parent child
Show More
@@ -198,7 +198,7 Redmine::MenuManager.map :project_menu do |menu|
198 menu.push :roadmap, { :controller => 'versions', :action => 'index' }, :param => :project_id,
198 menu.push :roadmap, { :controller => 'versions', :action => 'index' }, :param => :project_id,
199 :if => Proc.new { |p| p.shared_versions.any? }
199 :if => Proc.new { |p| p.shared_versions.any? }
200 menu.push :issues, { :controller => 'issues', :action => 'index' }, :param => :project_id, :caption => :label_issue_plural
200 menu.push :issues, { :controller => 'issues', :action => 'index' }, :param => :project_id, :caption => :label_issue_plural
201 menu.push :new_issue, { :controller => 'issues', :action => 'new' }, :param => :project_id, :caption => :label_issue_new,
201 menu.push :new_issue, { :controller => 'issues', :action => 'new', :copy_from => nil }, :param => :project_id, :caption => :label_issue_new,
202 :html => { :accesskey => Redmine::AccessKeys.key_for(:new_issue) }
202 :html => { :accesskey => Redmine::AccessKeys.key_for(:new_issue) }
203 menu.push :gantt, { :controller => 'gantts', :action => 'show' }, :param => :project_id, :caption => :label_gantt
203 menu.push :gantt, { :controller => 'gantts', :action => 'show' }, :param => :project_id, :caption => :label_gantt
204 menu.push :calendar, { :controller => 'calendars', :action => 'show' }, :param => :project_id, :caption => :label_calendar
204 menu.push :calendar, { :controller => 'calendars', :action => 'show' }, :param => :project_id, :caption => :label_calendar
@@ -2356,6 +2356,9 class IssuesControllerTest < ActionController::TestCase
2356 assert_tag 'select', :attributes => {:name => 'issue[project_id]'},
2356 assert_tag 'select', :attributes => {:name => 'issue[project_id]'},
2357 :child => {:tag => 'option', :attributes => {:value => '2', :selected => nil}, :content => 'OnlineStore'}
2357 :child => {:tag => 'option', :attributes => {:value => '2', :selected => nil}, :content => 'OnlineStore'}
2358 assert_tag 'input', :attributes => {:name => 'copy_from', :value => '1'}
2358 assert_tag 'input', :attributes => {:name => 'copy_from', :value => '1'}
2359
2360 # "New issue" menu item should not link to copy
2361 assert_select '#main-menu a.new-issue[href=/projects/ecookbook/issues/new]'
2359 end
2362 end
2360
2363
2361 def test_new_as_copy_with_attachments_should_show_copy_attachments_checkbox
2364 def test_new_as_copy_with_attachments_should_show_copy_attachments_checkbox
General Comments 0
You need to be logged in to leave comments. Login now