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

[#44841] fixed representer maps

Eric Schubertee61f7c96166
diff --git a/modules/storages/lib/api/v3/storages/storage_representer.rb b/modules/storages/lib/api/v3/storages/storage_representer.rb
index dc40cd6913b..b73052daa8a 100644
--- a/modules/storages/lib/api/v3/storages/storage_representer.rb
+++ b/modules/storages/lib/api/v3/storages/storage_representer.rb
@@ -89,7 +89,7 @@ module API::V3::Storages
link_without_resource :type,
getter: ->(*) {
- type = STORAGE_TYPE_MAP[represented.provider_type] || represented.provider_type
+ type = STORAGE_TYPE_URN_MAP[represented.provider_type] || represented.provider_type
{ href: type, title: 'Nextcloud' }
},
@@ -97,7 +97,7 @@ module API::V3::Storages
href = fragment['href']
break if href.blank?
- represented.provider_type = STORAGE_TYPE_URN_MAP[href] || href
+ represented.provider_type = STORAGE_TYPE_MAP[href] || href
}
link_without_resource :origin,