Patch #21841 » 0001-Fixed-exporting-collections-associated-with-issues.patch
| app/helpers/queries_helper.rb | ||
|---|---|---|
| 157 | 157 | |
| 158 | 158 |
def csv_content(column, issue) |
| 159 | 159 |
value = column.value_object(issue) |
| 160 |
if value.is_a?(Array)
|
|
| 160 |
if value.respond_to?(:collect)
|
|
| 161 | 161 |
value.collect {|v| csv_value(column, issue, v)}.compact.join(', ')
|
| 162 | 162 |
else |
| 163 | 163 |
csv_value(column, issue, value) |
| lib/redmine/export/pdf/issues_pdf_helper.rb | ||
|---|---|---|
| 360 | 360 |
format_date(value) |
| 361 | 361 |
elsif value.is_a?(Time) |
| 362 | 362 |
format_time(value) |
| 363 |
elsif value.respond_to?(:collect) |
|
| 364 |
value.collect(&:to_s).compact.join(', ')
|
|
| 363 | 365 |
else |
| 364 | 366 |
value |
| 365 | 367 |
end |