Skip to content

Commit

Permalink
Fix organizations templates not appearing
Browse files Browse the repository at this point in the history
The change to a default funder was stopping the organizations templates
from showing up on the template selection list.
  • Loading branch information
lagoan committed Aug 25, 2021
1 parent cddb13d commit dfee075
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions app/controllers/template_options_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,16 @@ def index
end
end

# If the no funder was specified OR the funder matches the org
if funder_id.blank? || funder_id == org_id
# We are using a default funder to provide with the default templates, but
# We still want to provide the organization templates.
#if funder_id.blank? || funder_id == org_id
# Retrieve the Org's templates
@templates << Template.published
.organisationally_visible
.where(org_id: org_id, customization_of: nil).to_a
end
@templates << Template.published
.organisationally_visible
.where(org_id: org_id, customization_of: nil).to_a
#end



# DMP Assistant: We do not want to include not customized templates from
# default funder
Expand Down

0 comments on commit dfee075

Please sign in to comment.