You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Robert Bar (JIRA)" <ji...@apache.org> on 2012/08/03 14:55:02 UTC
[jira] [Created] (FLEX-33157) Sort class: _fields and fieldList
variables can be out of sync
Robert Bar created FLEX-33157:
---------------------------------
Summary: Sort class: _fields and fieldList variables can be out of sync
Key: FLEX-33157
URL: https://issues.apache.org/jira/browse/FLEX-33157
Project: Apache Flex
Issue Type: Bug
Components: Spark: Sort and SortField
Affects Versions: Adobe Flex SDK 4.5 (Release)
Reporter: Robert Bar
Priority: Minor
Fix For: Adobe Flex SDK 4.5 (Release)
NOTE: the issue exists in both, mx and spark Sort classes.
Sort.findItem function is not able to configure search criteria and skips a block of code due to outdated fieldList variable. It often happens when the user sorts the AdvancedDataGrid by clicking on a certain column header. In the shortest scenario you can reproduce it (without AdvancedDataGrid) as follows:
1. create Sort object and assign an empty array of SortField objects to it
-> _fields and fieldList are both empty
2. add SortField object directly to the array
-> _fields length is 1, BUT fieldList length is 0 (BUG) which disallows findItem() operation to configure search criteria
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira