Fix for Internal error while editing hooks
Fix for Internal error while editing hooks

Any attempt to add hook (global or per project) resulted in internal error when custom fields where present. Original code used class Redmine::CustomFieldFormat, which has been removed from Redmine long time ago.
Undev/redmine_undev_git,Restream/redmine_undev_git,Restream/redmine_undev_git,Restream/redmine_undev_git,pawwal/redmine_undev_git,pawwal/redmine_undev_git,Undev/redmine_undev_git,Undev/redmine_undev_git,pawwal/redmine_undev_git