From 234c1324de546077759888c61490057ced9b40a7 Mon Sep 17 00:00:00 2001 From: Robert Munteanu Date: Wed, 21 Oct 2009 10:39:34 +0300 Subject: [PATCH] Don't require the handler to be set --- api/soap/mc_issue_api.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/api/soap/mc_issue_api.php b/api/soap/mc_issue_api.php index 266c13b..e320f07 100644 --- a/api/soap/mc_issue_api.php +++ b/api/soap/mc_issue_api.php @@ -415,7 +415,7 @@ function mc_issue_add( $p_username, $p_password, $p_issue ) { return new soap_fault( 'Client', '', 'Access Denied' ); } - $t_handler_id = mci_get_user_id( $p_issue['handler'] ); + $t_handler_id = isset ( $p_issue['handler'] ) ? mci_get_user_id( $p_issue['handler'] ) : 0 ; $t_priority_id = mci_get_priority_id( $p_issue['priority'] ); $t_severity_id = mci_get_severity_id( $p_issue['severity'] ); $t_status_id = mci_get_status_id( $p_issue['status'] ); -- 1.6.4.2