fix_pdf_export.diff

patch file for pdf group error - Chrisitian Noack, 2012-12-05 14:54

Download (919 Bytes)

View differences:

lib/redmine/export/pdf.rb
421 421
        issue_list(issues) do |issue, level|
422 422
          if query.grouped? &&
423 423
               (group = query.group_by_column.value(issue)) != previous_group
424
            if group
425
              previous_group = group.clone
426
            else
427
              previous_group = nil
428
            end
424 429
            pdf.SetFontStyle('B',10)
425 430
            group_label = group.blank? ? 'None' : group.to_s
426 431
            group_label << " (#{query.issue_count_by_group[group]})"
427 432
            pdf.Bookmark group_label, 0, -1
428 433
            pdf.RDMCell(table_width + col_id_width, row_height * 2, group_label, 1, 1, 'L')
429 434
            pdf.SetFontStyle('',8)
430
            previous_group = group
431 435
          end
432 436

  
433 437
          # fetch row values