alexbevi/redmine_knowledgebase — Issue #67: Categories does not delete
Author: osucws
Created: 2012-02-17 05:45:42+00:00
State: open

Categories does not delete on empty category. Just returns.

The line that is the culprit is in app/views/categories/show.html.erb

changing from:

<%= link_to_if_authorized_globally l(:label_delete_category), { :controller => 'categories', :action => 'destroy', :id => @category.id }, :class => 'icon icon-del', :confirm => l(:text_are_you_sure) %>

to:

<%= link_to_if_authorized_globally l(:label_delete_category), { :controller => 'categories', :action => 'destroy', :id => @category.id }, :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del' %>

fixes the issue.