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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
WIP - Processing PR: Removed work_package_file_links from path_helper.rb
Frank Bergmann77cf40349ecc
diff --git a/app/services/oauth_clients/connection_manager.rb b/app/services/oauth_clients/connection_manager.rbindex 1b308438feb..76de3f3d4af 100644--- a/app/services/oauth_clients/connection_manager.rb+++ b/app/services/oauth_clients/connection_manager.rb@@ -47,7 +47,6 @@ module OAuthClients# @param state (OAuth2 RFC) encapsulates the state of the calling page (URL + params) to return# @param scope (OAuth2 RFC) specifies the resources to access. Nextcloud only has one global scope.# @return ServiceResult with ServiceResult.result being either an OAuthClientToken or a redirection URL- # ToDo: get_access_token against a timeout server produces a OAuth URL response, that's not really correct.def get_access_token(scope: [], state: nil)# Check for an already existing token from last calltoken = get_existing_tokendiff --git a/lib/api/v3/utilities/path_helper.rb b/lib/api/v3/utilities/path_helper.rbindex afd3932600c..499ec95eac2 100644--- a/lib/api/v3/utilities/path_helper.rb+++ b/lib/api/v3/utilities/path_helper.rb@@ -480,10 +480,6 @@ module API"#{work_package(id)}/relations"end- def self.work_package_file_links(id)- "#{work_package(id)}/file_links"- end-def self.work_package_relation(id, work_package_id)"#{work_package_relations(work_package_id)}/#{id}"enddiff --git a/modules/storages/lib/api/v3/file_links/work_packages_file_links_api.rb b/modules/storages/lib/api/v3/file_links/work_packages_file_links_api.rbindex fe2796d575a..09e490de2a2 100644--- a/modules/storages/lib/api/v3/file_links/work_packages_file_links_api.rb+++ b/modules/storages/lib/api/v3/file_links/work_packages_file_links_api.rb@@ -74,7 +74,7 @@ module API::API::V3::FileLinks::FileLinkCollectionRepresenter.new(service_result.result,- self_link: api_v3_paths.work_package_file_links(@work_package.id),+ self_link: api_v3_paths.file_links(@work_package.id),current_user:)rescue StandardError => e