From: <gi...@ma...> - 2009-06-22 19:13:56
|
The branch, master has been updated via 996615c7f34628ba5d64ea9cf63f75c75b901abf (commit) from 76dbbcfb83079f017fb98a173b61cc117e31b406 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 996615c7f34628ba5d64ea9cf63f75c75b901abf Author: Paul Richards <pa...@ma...> Date: Mon Jun 22 20:13:09 2009 +0100 Fix additional soap api issues ----------------------------------------------------------------------- Summary of changes: api/soap/mc_api.php | 22 +++++++++++----------- api/soap/mc_project_api.php | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) ----------------------------------------------------------------------- commit 996615c7f34628ba5d64ea9cf63f75c75b901abf Author: Paul Richards <pa...@ma...> Date: Mon Jun 22 20:13:09 2009 +0100 Fix additional soap api issues diff --git a/api/soap/mc_api.php b/api/soap/mc_api.php index a9595d8..6822900 100644 --- a/api/soap/mc_api.php +++ b/api/soap/mc_api.php @@ -98,7 +98,7 @@ function mci_get_project_view_state_id( $p_view_state ) { return mci_get_enum_id_from_objectref( 'project_view_state', $p_view_state ); } -function mci_get_user_id( &$p_user ) { +function mci_get_user_id( $p_user ) { if( !isset( $p_user ) ) { return 0; } @@ -124,7 +124,7 @@ function mci_get_user_lang( $p_user_id ) { return $t_lang; } -function mci_get_status_id( &$p_status ) { +function mci_get_status_id( $p_status ) { if ( !isset( $p_status ) ) { return (int)config_get( 'bug_submit_status' ); } @@ -132,7 +132,7 @@ function mci_get_status_id( &$p_status ) { return mci_get_enum_id_from_objectref( 'status', $p_status ); } -function mci_get_severity_id( &$p_severity ) { +function mci_get_severity_id( $p_severity ) { if ( !isset( $p_severity ) ) { return (int)config_get( 'default_bug_severity' ); } @@ -140,7 +140,7 @@ function mci_get_severity_id( &$p_severity ) { return mci_get_enum_id_from_objectref( 'severity', $p_severity ); } -function mci_get_priority_id( &$p_priority ) { +function mci_get_priority_id( $p_priority ) { if ( !isset( $p_priority ) ) { return (int)config_get( 'default_bug_priority' ); } @@ -148,7 +148,7 @@ function mci_get_priority_id( &$p_priority ) { return mci_get_enum_id_from_objectref( 'priority', $p_priority ); } -function mci_get_reproducibility_id( &$p_reproducibility ) { +function mci_get_reproducibility_id( $p_reproducibility ) { if ( !isset( $p_reproducibility ) ) { return (int)config_get( 'default_bug_reproducibility' ); } @@ -156,7 +156,7 @@ function mci_get_reproducibility_id( &$p_reproducibility ) { return mci_get_enum_id_from_objectref( 'reproducibility', $p_reproducibility ); } -function mci_get_resolution_id( &$p_resolution ) { +function mci_get_resolution_id( $p_resolution ) { if ( !isset( $p_resolution ) ) { return (int)config_get( 'default_bug_resolution' ); } @@ -164,7 +164,7 @@ function mci_get_resolution_id( &$p_resolution ) { return mci_get_enum_id_from_objectref( 'resolution', $p_resolution ); } -function mci_get_projection_id( &$p_projection ) { +function mci_get_projection_id( $p_projection ) { if ( !isset( $p_projection ) ) { return (int)config_get( 'default_bug_projection' ); } @@ -172,7 +172,7 @@ function mci_get_projection_id( &$p_projection ) { return mci_get_enum_id_from_objectref( 'projection', $p_projection ); } -function mci_get_eta_id( &$p_eta ) { +function mci_get_eta_id( $p_eta ) { if ( !isset( $p_eta ) ) { return (int)config_get( 'default_bug_eta' ); } @@ -180,7 +180,7 @@ function mci_get_eta_id( &$p_eta ) { return mci_get_enum_id_from_objectref( 'eta', $p_eta ); } -function mci_get_view_state_id( &$p_view_state ) { +function mci_get_view_state_id( $p_view_state ) { if ( !isset( $p_view_state ) ) { return (int)config_get( 'default_bug_view_status' ); } @@ -193,7 +193,7 @@ function mci_get_view_state_id( &$p_view_state ) { # @param Object $p_value The value # @return Object The value if not empty; null otherwise. # -function mci_null_if_empty( &$p_value ) { +function mci_null_if_empty( $p_value ) { if( !is_blank( $p_value ) ) { return $p_value; } @@ -254,7 +254,7 @@ function mci_user_get_accessible_subprojects( $p_user_id, $p_parent_project_id, return $t_result; } -function translate_category_name_to_id( &$p_category_name, $p_project_id ) { +function translate_category_name_to_id( $p_category_name, $p_project_id ) { if ( !isset( $p_category_name ) ) { return 0; } diff --git a/api/soap/mc_project_api.php b/api/soap/mc_project_api.php index dda0b78..4f7d1fb 100644 --- a/api/soap/mc_project_api.php +++ b/api/soap/mc_project_api.php @@ -51,7 +51,7 @@ function mc_project_get_issues( $p_username, $p_password, $p_project_id, $p_page $t_issue['date_submitted'] = timestamp_to_iso8601( $t_issue_data->date_submitted ); $t_issue['sponsorship_total'] = $t_issue_data->sponsorship_total; - if( !empty( $t_issue_data['handler_id'] ) ) { + if( !empty( $t_issue_data->handler_id ) ) { $t_issue['handler'] = mci_account_get_array_by_id( $t_issue_data->handler_id ); } $t_issue['projection'] = mci_enum_get_array_by_id( $t_issue_data->projection, 'projection', $t_lang ); ----------------------------------------------------------------------- -- Mantis Bug Tracker |