Skip to content

Commit

Permalink
mc_issue_api: correct comment styles
Browse files Browse the repository at this point in the history
Affects #14558: Monitors get lost when calling mc_issue_update via SOAP
  • Loading branch information
rombert committed Aug 11, 2012
1 parent 05f7c33 commit a8cefa2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/soap/mc_issue_api.php
Expand Up @@ -346,15 +346,15 @@ function mci_issue_set_monitors( $p_issue_id , $p_requesting_user_id, $p_monitor
return mci_soap_fault_access_denied( $p_requesting_user_id, "Issue '$p_issue_id' is readonly" );
}

// 1. get existing monitor ids
# 1. get existing monitor ids
$t_existing_monitor_ids = bug_get_monitors( $p_issue_id );

// 2. build new monitors ids
# 2. build new monitors ids
$t_new_monitor_ids = array();
foreach ( $p_monitors as $t_monitor )
$t_new_monitor_ids[] = $t_monitor['id'];

// 3. for each of the new monitor ids, add it if it does not already exist
# 3. for each of the new monitor ids, add it if it does not already exist
foreach ( $t_new_monitor_ids as $t_user_id ) {

if ( $p_requesting_user_id == $t_user_id ) {
Expand All @@ -371,7 +371,7 @@ function mci_issue_set_monitors( $p_issue_id , $p_requesting_user_id, $p_monitor
bug_monitor( $p_issue_id, $t_user_id);
}

// 4. for each of the existing monitor ids, remove it if it is not found in the new monitor ids
# 4. for each of the existing monitor ids, remove it if it is not found in the new monitor ids
foreach ( $t_existing_monitor_ids as $t_user_id ) {

if ( $p_requesting_user_id == $t_user_id ) {
Expand Down

0 comments on commit a8cefa2

Please sign in to comment.