Revision 11064
Added by Jean-Philippe Lang over 12 years ago
trunk/lib/redmine.rb | ||
---|---|---|
238 | 238 |
menu.push :roadmap, { :controller => 'versions', :action => 'index' }, :param => :project_id, |
239 | 239 |
:if => Proc.new { |p| p.shared_versions.any? } |
240 | 240 |
menu.push :issues, { :controller => 'issues', :action => 'index' }, :param => :project_id, :caption => :label_issue_plural |
241 |
menu.push :new_issue, { :controller => 'issues', :action => 'new' }, :param => :project_id, :caption => :label_issue_new, |
|
241 |
menu.push :new_issue, { :controller => 'issues', :action => 'new', :copy_from => nil }, :param => :project_id, :caption => :label_issue_new,
|
|
242 | 242 |
:html => { :accesskey => Redmine::AccessKeys.key_for(:new_issue) } |
243 | 243 |
menu.push :gantt, { :controller => 'gantts', :action => 'show' }, :param => :project_id, :caption => :label_gantt |
244 | 244 |
menu.push :calendar, { :controller => 'calendars', :action => 'show' }, :param => :project_id, :caption => :label_calendar |
trunk/test/functional/issues_controller_test.rb | ||
---|---|---|
2356 | 2356 |
assert_tag 'select', :attributes => {:name => 'issue[project_id]'}, |
2357 | 2357 |
:child => {:tag => 'option', :attributes => {:value => '2', :selected => nil}, :content => 'OnlineStore'} |
2358 | 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=/https/www.redmine.org/projects/ecookbook/issues/new]' |
|
2359 | 2362 |
end |
2360 | 2363 |
|
2361 | 2364 |
def test_new_as_copy_with_attachments_should_show_copy_attachments_checkbox |
Also available in: Unified diff
"New issue" menu item should not link to copy form (#12652).