View Issue Details

IDProjectCategoryView StatusLast Update
0012304mantisbtfilterspublic2013-10-04 14:14
Reporterdaryn Assigned Todaryn  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.2.3 
Target Version1.2.3Fixed in Version1.2.3 
Summary0012304: If plugins set a params value for plugin filters the values are dropped.
Description

The value return from plugin query function is an array of parameters to be added to the filter parameters. filter api calls array_merge for the 'params' element but the merge is not assigned back to the where params variable so the values are lost.

Steps To Reproduce

Create a plugin filter. use db_param in the query and put the values in the params element of the return array. Attempt to filter by the plugin filter. Fail.
This is overcome in most example plugins because query bound is not being used. The values are being assigned directly in the sql statement. Attempting to use query bound correctly causes the failure.

TagsNo tags attached.

Activities

There are no notes attached to this issue.

Related Changesets

MantisBT: master b30ca3b9

2010-08-27 14:25

daryn


Details Diff
Fix 0012304 - If plugins set a params value for plugin filters the values
are dropped.
Affected Issues
0012304
mod - core/filter_api.php Diff File

MantisBT: master-1.2.x 9d56dad2

2010-08-27 14:25

daryn


Details Diff
Fix 0012304 - If plugins set a params value for plugin filters the values
are dropped.
Affected Issues
0012304
mod - core/filter_api.php Diff File