From 5edc7fe53ed3b370fc04eb878bab8c38b249dbb6 Mon Sep 17 00:00:00 2001 From: Ryan Date: Thu, 13 Apr 2023 09:29:05 -0600 Subject: [PATCH] use title for description if description blank (#557) --- app/helpers/export_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/export_helper.rb b/app/helpers/export_helper.rb index e427661e..356dd49a 100644 --- a/app/helpers/export_helper.rb +++ b/app/helpers/export_helper.rb @@ -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' })