Skip to content

Commit 0046b36

Browse files
committed
Issue #3534 - Add fix for user own org template query list.
1 parent 4ce0dea commit 0046b36

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/controllers/plans_controller.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ def new
4545
.uniq.sort_by(&:title)
4646

4747
# get templates of user's customised org
48-
user_org_custom_templates = Template.latest_customizable.where(family_id: customization_ids)
48+
user_org_custom_templates = Template.latest_customized_version_per_org(@plan.org_id)
49+
.published
4950
.uniq.sort_by(&:title)
5051

5152
# get funder templates no customised templates

0 commit comments

Comments
 (0)