Skip to content

Commit

Permalink
use title for description if description blank (#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
rlakey authored Apr 13, 2023
1 parent 6cfb966 commit 5edc7fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/export_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def xccdf_helper(component)
ox_el_helper(benchmark, 'status', 'draft', { date: Time.zone.today.strftime('%Y-%m-%d') })
title = (component[:title] || "#{component[:name]} STIG Readiness Guide")
ox_el_helper(benchmark, 'title', title)
ox_el_helper(benchmark, 'description', component[:description])
ox_el_helper(benchmark, 'description', component[:description] || title)
ox_el_helper(benchmark, 'notice', nil, { id: 'terms-of-use', 'xml:lang': 'en' })
ox_el_helper(benchmark, 'front-matter', nil, { 'xml:lang': 'en' })
ox_el_helper(benchmark, 'rear-matter', nil, { 'xml:lang': 'en' })
Expand Down

0 comments on commit 5edc7fe

Please sign in to comment.