Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

399 B
Raw Blame
# frozen_string_literal: true

require "spec_helper"
require "pdf/inspector"

module PDFExportSpecUtils
  def column_title(column_name)
    label_title(column_name)
  end

  def label_title(column_name)
    if column_name.start_with?("cf_")
      id = column_name.delete_prefix("cf_").to_i
      return ::CustomField.find(id).name
    end
    WorkPackage.human_attribute_name(column_name)
  end
end