alexbevi / redmine_knowledgebase

A knowledgebase plugin for Redmine
453 stars 197 forks source link

500 Internal Server Error - if DELETE category but it's have subcategory #293

Closed hello2jack closed 8 years ago

hello2jack commented 9 years ago

If delete category but the category have subcategory, system will not show any warning messages, and then.... this project's knowledge base will always show "500 Internal Server Error", until i delete the subcategory in DB.

pyhalov commented 8 years ago

Workaround: alter table kb_articles add constraint kb_articles_category_id foreign key (category_id) references kb_categories(id) on delete cascade; alter table kb_categories add constraint kb_categories_parent_id foreign key (parent_id) references kb_categories(id) on delete cascade;

a-monty-only commented 8 years ago

Same error occurred. We can't use "nowledgebase" now.

alexbevi commented 8 years ago

Should be fixed in v3.2.0. @hello2jack @pyhalov @kurofune please have a look when you have a moment