Skip to content

Commit

Permalink
Fixes #35283 - populate templates description from metadata (#580)
Browse files Browse the repository at this point in the history
  • Loading branch information
nofaralfasi authored Aug 4, 2022
1 parent b90fb9b commit 942308e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion db/seeds.d/50_discovery_templates.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
tmpl.template = content
tmpl.organizations = organizations
tmpl.locations = locations

metadata = Template.parse_metadata(content)
tmpl.description = metadata['description']

tmpl.save!(:validate => false) if tmpl.changes.present?
end
end
end

0 comments on commit 942308e

Please sign in to comment.