Fixes the routing bug of the on-the-fly version create link in the work package form

pull/1029/head
Ion Biziiac 11 years ago
parent 2500e1ea01
commit 2108a45d42
  1. 2
      app/helpers/work_packages_helper.rb

@ -544,7 +544,7 @@ module WorkPackagesHelper
field += prompt_to_remote(icon_wrapper('icon icon-add',t(:label_version_new)), field += prompt_to_remote(icon_wrapper('icon icon-add',t(:label_version_new)),
l(:label_version_new), l(:label_version_new),
'version[name]', 'version[name]',
new_project_version_path(locals[:project]), project_versions_path(locals[:project]),
:class => 'no-decoration-on-hover', :class => 'no-decoration-on-hover',
:title => l(:label_version_new)) if authorize_for('versions', 'new') :title => l(:label_version_new)) if authorize_for('versions', 'new')

Loading…
Cancel
Save