Skip to content

Commit

Permalink
Merge pull request #86 from yzzy/redmineup_checklist_light_version_co…
Browse files Browse the repository at this point in the history
…mpatibility_fix

Fixed compatibility with RedmineUP Checklist plugin (light version)
  • Loading branch information
jperelli authored Sep 25, 2018
2 parents 74d3c32 + e7b903d commit c9c5af1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/periodictask_helper.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module PeriodictaskHelper

def checklistPluginInstalled?
return Redmine::Plugin.all.any? {|p| p.id == :redmine_checklists}
return Redmine::Plugin.all.any? {|p| p.id == :redmine_checklists} && Object.const_defined?('ChecklistTemplate')
end

def template_options_for_select(project = nil, selected_id = nil)
Expand Down

0 comments on commit c9c5af1

Please sign in to comment.