View Issue Details

IDProjectCategoryView StatusLast Update
0021591mantisbtapi soappublic2019-12-03 06:29
Reportertomop Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status feedbackResolutionopen 
Product Version1.3.0 
Summary0021591: 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().

Tagspatch
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;

Activities

rombert

rombert

2016-08-09 11:30

reporter   ~0053774

Thanks for the report @tomop . Since you found the cause, can you maybe submit a pull request with the fix? I'd be happy to guide you to get the fix merged, ideally with testing included.