From 78a3f9ed489ce7a57f79f07369cc5e2d63af1577 Mon Sep 17 00:00:00 2001 From: Roland Becker Date: Fri, 25 Jan 2019 10:09:15 +0100 Subject: [PATCH] Deliver all versions when querying projects via SOAP or REST API Before this change, obsolete versions were not part of the response. Fixes #25381 --- api/soap/mc_project_api.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/soap/mc_project_api.php b/api/soap/mc_project_api.php index c0b10816e2..053d2dcc16 100644 --- a/api/soap/mc_project_api.php +++ b/api/soap/mc_project_api.php @@ -834,7 +834,9 @@ function mci_custom_field_type_name( $p_type_id ) { * @return array The project versions. */ function mci_project_versions( $p_project_id ) { - $t_versions = version_get_all_rows( $p_project_id, /* inherit */ null ); + # use null, null as the fastest way (no additional where clause in query) + # to get all released / non-released and obsolete / non-obsolete versions + $t_versions = version_get_all_rows( $p_project_id, null, null ); $t_results = array(); foreach( $t_versions as $t_version ) {