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

remove unnecessary function

as-op94eeaa3d184f
diff --git a/app/models/exports/formatters/link_formatter.rb b/app/models/exports/formatters/link_formatter.rb
index 2eb737bcccf..d8e30880d6f 100644
--- a/app/models/exports/formatters/link_formatter.rb
+++ b/app/models/exports/formatters/link_formatter.rb
@@ -35,10 +35,6 @@ module Exports
@href = object.custom_value_for(custom_field).to_s
end
- def href
- @href
- end
-
def to_html
ApplicationController.helpers.link_to(@href, @href)
end
diff --git a/app/models/work_package/pdf_export/export/wp/attributes.rb b/app/models/work_package/pdf_export/export/wp/attributes.rb
index 2baa34266b9..38ad823a6a6 100644
--- a/app/models/work_package/pdf_export/export/wp/attributes.rb
+++ b/app/models/work_package/pdf_export/export/wp/attributes.rb
@@ -242,7 +242,7 @@ module WorkPackage::PDFExport::Export::Wp::Attributes
end
def get_link_cell(custom_url)
- make_link_href_cell(custom_url.href, custom_url.href)
+ make_link_href_cell(custom_url.to_s, custom_url.to_s)
end
def get_column_value_cell(work_package, column_name)