update code for Redmine 2.4.x