Skip to content

Commit

Permalink
Fixed #8494: Remove backward compatibility code from SOAP API.
Browse files Browse the repository at this point in the history
Fixed #8525: mc_projects_get_user_accessible() shouldn't return ALL_PROJECTS.

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/branches/BRANCH_1_1_0@4697 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
vboctor committed Nov 1, 2007
1 parent fb16180 commit 2cda435
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 340 deletions.
317 changes: 0 additions & 317 deletions api/soap/mc_compat_api.php

This file was deleted.

3 changes: 0 additions & 3 deletions api/soap/mc_core.php
Expand Up @@ -30,9 +30,6 @@
require_once( $t_user_configs );
}

# APIs for compatability with older versions of Mantis
require_once( $t_current_dir . 'mc_compat_api.php' );

# MantisConnect APIs
# mc_* = public methods
# mci_* = internal methods
Expand Down
2 changes: 1 addition & 1 deletion api/soap/mc_filter_api.php
Expand Up @@ -27,7 +27,7 @@ function mc_filter_get( $p_username, $p_password, $p_project_id ) {
return new soap_fault( 'Client', '', 'Access Denied' );
}
$t_result = array();
foreach( mci_filter_db_get_available_queries( $p_project_id, $t_user_id ) as $t_filter_row ) {
foreach( filter_db_get_available_queries( $p_project_id, $t_user_id ) as $t_filter_row ) {
$t_filter = array();
$t_filter['id'] = $t_filter_row['id'];
$t_filter['owner'] = mci_account_get_array_by_id( $t_filter_row['user_id'] );
Expand Down
6 changes: 3 additions & 3 deletions api/soap/mc_issue_api.php
Expand Up @@ -535,7 +535,7 @@ function mc_issue_add( $p_username, $p_password, $p_issue ) {
}

$t_view_state_id = mci_get_enum_id_from_objectref( 'view_state', $t_view_state );
mci_bugnote_add( $t_issue_id, $t_note['text'], $t_view_state_id == VS_PRIVATE, BUGNOTE, '', $t_user_id );
bugnote_add( $t_issue_id, $t_note['text'], '0:00', $t_view_state_id == VS_PRIVATE, BUGNOTE, '', $t_user_id );
}
}

Expand Down Expand Up @@ -699,7 +699,7 @@ function mc_issue_update( $p_username, $p_password, $p_issue_id, $p_issue ) {

// TODO: consider supporting updating of bugnotes and detecting the ones that haven't changed.
$t_view_state_id = mci_get_enum_id_from_objectref( 'view_state', $t_view_state );
mci_bugnote_add( $p_issue_id, $t_note['text'], $t_view_state_id == VS_PRIVATE, BUGNOTE, '', $t_user_id );
bugnote_add( $p_issue_id, $t_note['text'], '0:00', $t_view_state_id == VS_PRIVATE, BUGNOTE, '', $t_user_id );
}
}

Expand Down Expand Up @@ -775,7 +775,7 @@ function mc_issue_note_add( $p_username, $p_password, $p_issue_id, $p_note ) {
}

$t_view_state_id = mci_get_enum_id_from_objectref( 'view_state', $t_view_state );
return mci_bugnote_add( $p_issue_id, $p_note['text'], $t_view_state_id == VS_PRIVATE, BUGNOTE, '', $t_user_id );
return bugnote_add( $p_issue_id, $p_note['text'], '0:00', $t_view_state_id == VS_PRIVATE, BUGNOTE, '', $t_user_id );
}

/**
Expand Down

0 comments on commit 2cda435

Please sign in to comment.