mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-21 07:26:15 +08:00
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:
commit
2007524365
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue