MantisBT

View Issue Details Jump to Notes ] Wiki ] Related Changesets ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012304mantisbtfilterspublic2010-08-27 14:232011-08-02 12:35
Reporterdaryn 
Assigned Todaryn 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version1.2.3 
Target Version1.3.xFixed in Version1.2.3 
Summary0012304: If plugins set a params value for plugin filters the values are dropped.
DescriptionThe 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 ReproduceCreate 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.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Related Changesets
MantisBT: master b30ca3b9
Timestamp: 2010-08-27 18:25:16
Author: daryn
Details ] Diff ]
Fix 0012304 - If plugins set a params value for plugin filters the values
are dropped.
mod - core/filter_api.php Diff ] File ]
MantisBT: master-1.2.x 9d56dad2
Timestamp: 2010-08-27 18:25:16
Author: daryn
Details ] Diff ]
Fix 0012304 - If plugins set a params value for plugin filters the values
are dropped.
mod - core/filter_api.php Diff ] File ]

- Issue History
Date Modified Username Field Change
2010-08-27 14:23 daryn New Issue
2010-08-27 14:23 daryn Status new => assigned
2010-08-27 14:23 daryn Assigned To => daryn
2010-08-27 14:25 daryn Changeset attached => MantisBT master b30ca3b9
2010-08-27 14:25 daryn Resolution open => fixed
2010-08-27 14:25 daryn Fixed in Version => 1.3.x
2010-08-27 14:58 daryn Changeset attached => MantisBT master-1.2.x 9d56dad2
2010-08-27 14:59 daryn Status assigned => resolved
2010-08-27 14:59 daryn Fixed in Version 1.3.x => 1.2.3
2011-08-02 12:35 dregad Status resolved => closed


MantisBT 1.2.16dev master-1.2.x-05091f5 [^]
Copyright © 2000 - 2013 MantisBT Team
Time: 0.0590 seconds.
memory usage: 2,797 KB
Powered by Mantis Bugtracker