View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0021591 | mantisbt | api soap | public | 2016-08-05 04:43 | 2019-12-03 06:29 |
Reporter | tomop | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | feedback | Resolution | open | ||
Product Version | 1.3.0 | ||||
Summary | 0021591: mc_filtersearch* cannot search by tag_string | ||||
Description | filter_get_bug_rows() require a comma-separated string as tag_string but mc_filter_api.php passes an array to filter_get_bug_rows(). | ||||
Tags | patch | ||||
Attached Files | mantisconnect-filter-tagstring.patch (591 bytes)
diff -urN mantisbt-1.3.0.orig/api/soap/mc_filter_api.php mantisbt-1.3.0/api/soap/mc_filter_api.php --- mantisbt-1.3.0.orig/api/soap/mc_filter_api.php 2016-07-10 08:09:51.000000000 +0900 +++ mantisbt-1.3.0/api/soap/mc_filter_api.php 2016-07-30 22:17:26.638837876 +0900 @@ -272,6 +272,10 @@ } } + if( is_array ( $t_filter['tag_string']) ) { + $t_filter['tag_string'] = implode( config_get( 'tag_separator' ), $t_filter['tag_string']); + } + $t_filter = filter_ensure_valid_filter( $t_filter ); $t_page_number = $p_page_number < 1 ? 1 : $p_page_number; | ||||