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

baseline api: add `timestamps` only to `query` hash if present

Sebastian Fiedlschuster00958b8ba875
diff --git a/lib/api/v3/work_packages/work_package_collection_representer.rb b/lib/api/v3/work_packages/work_package_collection_representer.rb
index 26c0a2de73c..93744ea5d51 100644
--- a/lib/api/v3/work_packages/work_package_collection_representer.rb
+++ b/lib/api/v3/work_packages/work_package_collection_representer.rb
@@ -55,7 +55,7 @@ module API
# TODO: Should we rename `_query` to `query_object`?
# TODO: Should we rename `query` to `query_params`?
# TODO: Should we include the timestamps in the query params instead of passing them separately?
- query[:timestamps] ||= API::V3::Utilities::PathHelper::ApiV3Path.timestamps_to_param_value(timestamps)
+ query[:timestamps] ||= API::V3::Utilities::PathHelper::ApiV3Path.timestamps_to_param_value(timestamps) if timestamps.present?
super(models,
self_link:,