View Issue Details

IDProjectCategoryView StatusLast Update
0011116mantisbtplug-inspublic2010-02-22 14:35
Reportercmfitch1 Assigned Tojreese  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Fixed in Version1.2.0 
Summary0011116: Creating permalinks broken for plugins defining filters of type FILTER_TYPE_MULTI*
Description

When the URL is created for a filter permalink, the number of values selected for the given filter field determines whether it is encoded as an array or not. Plug-ins define their filters to be of a particular type and always expect that type in the permalink. filter_encode_field_and_value() only encodes the field as an array if there is more than one item selected. The checking in filter_ensure_valid_filter() expects an array regardless.

Steps To Reproduce
  1. Select one item in a plugin filter field that supports multiple selections.
  2. Apply the filter and generate a permalink.
  3. Try to follow the permalink and receive the following error:

APPLICATION ERROR 0000201

An array was expected but a string was received for <field_name>.

TagsNo tags attached.

Activities

jreese

jreese

2009-11-03 16:03

reporter   ~0023557

Fix committed to 1.2.x and master branches.

Related Changesets

MantisBT: master-1.2.x 606b93a7

2009-11-03 13:32

Chris Fitch

Committer: jreese


Details Diff
Fix 0011116: proper permalink for custom filters

Signed-off-by: John Reese <jreese@leetcode.net>
Affected Issues
0011116
mod - core/filter_api.php Diff File

MantisBT: master be048ab7

2009-11-03 13:32

Chris Fitch

Committer: jreese


Details Diff
Fix 0011116: proper permalink for custom filters

Signed-off-by: John Reese <jreese@leetcode.net>
Affected Issues
0011116
mod - core/filter_api.php Diff File