Merge pull request #2352 from urbanrotnik/ur-sci-4272-multiple-checklist-items-fix

Fix for items with newline [SCI-4272]
This commit is contained in:
Urban Rotnik 2020-01-30 13:05:41 +01:00 committed by GitHub
commit 2007524365
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,7 @@ class RepositoryChecklistValue < ApplicationRecord
end end
def export_formatted def export_formatted
formatted(separator: "\n") repository_checklist_items.pluck(:data).map { |d| d.tr("\n", ' ') }.join("\n")
end end
def data def data