Skip to content

Commit

Permalink
SOAP: only return enabled categories
Browse files Browse the repository at this point in the history
mc_project_get_categories() should not return disabled categories.

Issue #31017
  • Loading branch information
dregad committed Feb 18, 2024
1 parent ff09c2e commit fc4c946
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/soap/mantisconnect.wsdl
Expand Up @@ -1107,7 +1107,7 @@
<output message="tns:mc_projects_get_user_accessibleResponse"/>
</operation>
<operation name="mc_project_get_categories">
<documentation>Get the categories belonging to the specified project.</documentation>
<documentation>Get the enabled categories belonging to the specified project.</documentation>
<input message="tns:mc_project_get_categoriesRequest"/>
<output message="tns:mc_project_get_categoriesResponse"/>
</operation>
Expand Down
4 changes: 2 additions & 2 deletions api/soap/mc_project_api.php
Expand Up @@ -251,7 +251,7 @@ function mci_project_initial_checks( $p_username, $p_password, $p_project_id, $p
}

/**
* Get all categories of a project.
* Get all enabled categories of a project.
*
* @param string $p_username The name of the user trying to access the categories.
* @param string $p_password The password of the user.
Expand All @@ -266,7 +266,7 @@ function mc_project_get_categories( $p_username, $p_password, $p_project_id ) {
}

$t_result = array();
$t_cat_array = category_get_all_rows( $p_project_id );
$t_cat_array = category_get_all_rows( $p_project_id, null, false, true );
foreach( $t_cat_array as $t_category_row ) {
$t_result[] = $t_category_row['name'];
}
Expand Down

0 comments on commit fc4c946

Please sign in to comment.