More unit tests for the plugins. Fixed bug where a plugin's hook method could return nil.

This commit is contained in:
Eric Davis
2008-07-28 17:10:22 -07:00
parent e14b86453e
commit ca8fb4026e
2 changed files with 49 additions and 1 deletions
+2 -1
View File
@@ -203,7 +203,8 @@ module Redmine #:nodoc:
def call_hook(hook_name, context = { })
response = ''
@@hooks[hook_name.to_sym].each do |method|
response += method.call(context)
method_response = method.call(context)
response += method_response unless method_response.nil?
end
response
end