Skip to content

Commit

Permalink
Deliver all versions when querying projects via SOAP or REST API
Browse files Browse the repository at this point in the history
Before this change, obsolete versions were not part of the response.

Fixes #25381
  • Loading branch information
atrol committed Jan 31, 2019
1 parent d4465db commit 78a3f9e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/soap/mc_project_api.php
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 78a3f9e

Please sign in to comment.