View Issue Details

IDProjectCategoryView StatusLast Update
0022566mantisbtfilterspublic2017-04-01 00:13
Reportercproensa Assigned Tocproensa  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version2.2.0 
Target Version2.2.3Fixed in Version2.2.3 
Summary0022566: Filter error due to "view status" having an array value
Description

A filter error is raised when "view status" have an array value in the current filter properties.
The value is stored as an array after some situation by using permalinks.

TagsNo tags attached.

Activities

atrol

atrol

2017-03-22 09:03

developer   ~0056159

Last edited: 2017-03-22 09:03

@cproensa

Is this the issue?

APPLICATION ERROR # 202

A string was expected but an array was received for view_state.
  • Reset filter
  • Create permalink
  • Click on the link (notice that now you have an advanced filter)
  • Click simple filter
cproensa

cproensa

2017-03-22 09:04

developer   ~0056160

PR: https://github.com/mantisbt/mantisbt/pull/1061

cproensa

cproensa

2017-03-22 09:06

developer   ~0056161

Last edited: 2017-03-22 09:06

Is this the issue?
APPLICATION ERROR # 202
A string was expected but an array was received for view_state.

yes....

Related Changesets

MantisBT: master-2.2 449f4d51

2017-03-22 18:18

cproensa

Committer: vboctor


Details Diff
Validate filter values that must not be arrays

Add validation for values that must be a single value.
Clean up type validation for both single and multiple values.

Fixes: 0022566
Affected Issues
0022566
mod - core/filter_api.php Diff File
mod - view_all_set.php Diff File