Patch by Imre Tóth (http://www.redmine.org/boards/3/topics/29545?r=39303#message-39303)
Redmine 2.3.2 fix
Merge pull request #1 from logical-and/master

Keeping current with upstream