Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a8cefa2

Browse files
committedAug 11, 2012
mc_issue_api: correct comment styles
Affects #14558: Monitors get lost when calling mc_issue_update via SOAP
1 parent 05f7c33 commit a8cefa2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎api/soap/mc_issue_api.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -346,15 +346,15 @@ function mci_issue_set_monitors( $p_issue_id , $p_requesting_user_id, $p_monitor
346346
return mci_soap_fault_access_denied( $p_requesting_user_id, "Issue '$p_issue_id' is readonly" );
347347
}
348348

349-
// 1. get existing monitor ids
349+
# 1. get existing monitor ids
350350
$t_existing_monitor_ids = bug_get_monitors( $p_issue_id );
351351

352-
// 2. build new monitors ids
352+
# 2. build new monitors ids
353353
$t_new_monitor_ids = array();
354354
foreach ( $p_monitors as $t_monitor )
355355
$t_new_monitor_ids[] = $t_monitor['id'];
356356

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

360360
if ( $p_requesting_user_id == $t_user_id ) {
@@ -371,7 +371,7 @@ function mci_issue_set_monitors( $p_issue_id , $p_requesting_user_id, $p_monitor
371371
bug_monitor( $p_issue_id, $t_user_id);
372372
}
373373

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

377377
if ( $p_requesting_user_id == $t_user_id ) {

0 commit comments

Comments
 (0)
Please sign in to comment.