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

fix link strategy to return nil when value is not set

Ivan Kuchin98ca48cac4fb
diff --git a/app/models/custom_value/link_strategy.rb b/app/models/custom_value/link_strategy.rb
index 3e6951d6dec..091c01de5d6 100644
--- a/app/models/custom_value/link_strategy.rb
+++ b/app/models/custom_value/link_strategy.rb
@@ -28,7 +28,7 @@
class CustomValue::LinkStrategy < CustomValue::FormatStrategy
def typed_value
- formatted_value
+ formatted_value if value.present?
end
def parse_value(val)