bap14 / redmine_category_tree

Module for Redmine to allow categories to be a tree instead of a single-list
18 stars 21 forks source link

Fix for error 500 on Issue show with specific history entry #6

Closed KappaNossi closed 11 years ago

KappaNossi commented 11 years ago

The Issue show page threw an error 500 (could not find Issue Category with ID nil) when accessing an Issue which has a history entry involving the Issue Category field. It occurs when the history states the Category change from or to an empty value.

A simple nil value check was introduced in the overridden IssueHelper method to prevent this from happening.