diff --git a/app/views/attachments/_type_edit.html.erb b/app/views/attachments/_type_edit.html.erb
index 79d0da0bb..5d9278823 100644
--- a/app/views/attachments/_type_edit.html.erb
+++ b/app/views/attachments/_type_edit.html.erb
@@ -3,7 +3,7 @@
<%= select_tag "attachment_type",
options_from_collection_for_select(attachmenttypes, "id",
- "typeName",attachment.attachtype), :onchange=>"attachmenttypes_change("+attachment.id.to_s + ",this.value)"%>
+ "typeName",attachment.attachtype), :onchange=>"attachmenttypes_change("+attachment.id.to_s + ",this.value)"%>
<%= link_to(image_tag('edit/edit.png'), 'javascript:void(0);',:style=>"white-space:nowrap;", :id=>"edit_box"+attachment.id.to_s ,
:onclick =>"$('#put-tag-form-" +attachment.id.to_s+ "').show();
diff --git a/config/routes.rb b/config/routes.rb
index c743c2151..b7e6dcebc 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -457,11 +457,7 @@ RedmineApp::Application.routes.draw do
match 'attachments/autocomplete', :to => 'attachments#autocomplete', via: [:post]
post 'attachments/relationfile', to: 'attachments#add_exist_file_to_project', as: 'attach_relation'
post 'attachments/updateType/:attachmentid/:newtype' ,:to => 'attachments#updateType', :attachmentid => /\d+/, :newtype => /.*/
- resources :attachments, :only => [:show, :destroy] do
- collection do
- match "updateType" , via: [:get, :post]
- end
- end
+ resources :attachments, :only => [:show, :destroy]
resources :groups do
member do