Merge pull request #282 from opf/fix/type_consolidation_on_work_package

Fix/type consolidation on work package
pull/288/head
Martin Czuchra 11 years ago
commit 80eecbdd51
  1. 4
      app/helpers/work_packages_helper.rb
  2. 2
      lib/redmine.rb

@ -81,7 +81,7 @@ module WorkPackagesHelper
def work_package_form_top_attributes(form, work_package, locals = {})
[
work_package_form_type_attribute(form, work_package, locals),
work_package_form_type_attribute(form, work_package, locals),
work_package_form_planning_element_type_attribute(form, work_package, locals),
work_package_form_subject_attribute(form, work_package, locals),
work_package_form_parent_attribute(form, work_package, locals),
work_package_form_description_attribute(form, work_package, locals)
@ -213,7 +213,7 @@ module WorkPackagesHelper
end
end
def work_package_form_type_attribute(form, work_package, locals = {})
def work_package_form_planning_element_type_attribute(form, work_package, locals = {})
if work_package.is_a?(PlanningElement)
field = form.select :planning_element_type_id,
(locals[:project].planning_element_types.collect { |m| [m.name, m.id] }),

@ -284,7 +284,7 @@ Redmine::MenuManager.map :project_menu do |menu|
:if => Proc.new { |p| p.shared_versions.any? }
menu.push :issues, { :controller => '/issues', :action => 'index' }, :param => :project_id, :caption => :label_issue_plural
menu.push :new_issue, { :controller => '/work_packages', :action => 'new', :type => 'Issue' }, :param => :project_id, :caption => :label_issue_new, :parent => :issues,
menu.push :new_issue, { :controller => '/work_packages', :action => 'new', :sti_type => 'Issue' }, :param => :project_id, :caption => :label_issue_new, :parent => :issues,
:html => { :accesskey => Redmine::AccessKeys.key_for(:new_issue) }
menu.push :view_all_issues, { :controller => '/issues', :action => 'all' }, :param => :project_id, :caption => :label_issue_view_all, :parent => :issues
menu.push :summary_field, {:controller => '/issues/reports', :action => 'report'}, :param => :project_id, :caption => :label_workflow_summary, :parent => :issues

Loading…
Cancel
Save