From: <gi...@ma...> - 2009-11-09 21:19:43
|
The branch, master-1.2.x has been updated via 70bbad263af33fbcfd0a99bc64f33f98ddc1c291 (commit) from 256ba000e9c695040b2ae2f013af8e1dd3613568 (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 70bbad263af33fbcfd0a99bc64f33f98ddc1c291 Author: Robert Munteanu <rob...@gm...> Date: Mon Nov 9 23:16:25 2009 +0200 Issue #11138: Error when retrieving bug via SOAP Fixes a possible error in mci_issue_get_attachments when the user does not have access to viewing attachments. ----------------------------------------------------------------------- Summary of changes: api/soap/mc_issue_api.php | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) ----------------------------------------------------------------------- commit 70bbad263af33fbcfd0a99bc64f33f98ddc1c291 Author: Robert Munteanu <rob...@gm...> Date: Mon Nov 9 23:16:25 2009 +0200 Issue #11138: Error when retrieving bug via SOAP Fixes a possible error in mci_issue_get_attachments when the user does not have access to viewing attachments. diff --git a/api/soap/mc_issue_api.php b/api/soap/mc_issue_api.php index 3c21981..fdc1e40 100644 --- a/api/soap/mc_issue_api.php +++ b/api/soap/mc_issue_api.php @@ -221,6 +221,12 @@ function mci_issue_get_custom_fields( $p_issue_id ) { */ function mci_issue_get_attachments( $p_issue_id ) { $t_attachment_rows = bug_get_attachments( $p_issue_id ); + + if ( $t_attachment_rows === false) { + return null; + } + + $t_result = array(); foreach( $t_attachment_rows as $t_attachment_row ) { ----------------------------------------------------------------------- -- Mantis Bug Tracker |