TARGET VERSION:
Redmine 1.0.1

TARGET PORTAL:
All

BUG TYPE: 
Patch

DESCRIPTION: 
It patches the issues controller

REFERENCE:
http://redmine/redmine/issues/4565

BUG DESCRIPTION:
If we delete at least 2 subtasks in one action (right clic > Delete), the parent issue can not become a leaf, even if we delete all its subtasks. It is because the lft and rgt values are not correctly updated 

FIX DESCRIPTION:
It proceed like a plugin, it patches the destroy method of the issues_controller. To resolve the bug, the patch sort the issues to delete by their rgt value.

IMPACTED FILES:
Added:
/
Modified:
/
Deleted:
/
Patched:
app\controllers\issues_controller.rb
