Return-Path: X-Original-To: apmail-flex-issues-archive@minotaur.apache.org Delivered-To: apmail-flex-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A96BE10B94 for ; Wed, 18 Sep 2013 08:50:55 +0000 (UTC) Received: (qmail 96425 invoked by uid 500); 18 Sep 2013 08:50:55 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 96412 invoked by uid 500); 18 Sep 2013 08:50:55 -0000 Mailing-List: contact issues-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list issues@flex.apache.org Received: (qmail 96398 invoked by uid 99); 18 Sep 2013 08:50:54 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Sep 2013 08:50:54 +0000 Date: Wed, 18 Sep 2013 08:50:54 +0000 (UTC) From: "Justin Mclean (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (FLEX-33157) Sort class: _fields and fieldList variables can be out of sync MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLEX-33157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Justin Mclean reassigned FLEX-33157: ------------------------------------ Assignee: Justin Mclean > 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 > Assignee: Justin Mclean > Priority: Minor > Fix For: Adobe Flex SDK Next > > Original Estimate: 24h > Remaining Estimate: 24h > > 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 For more information on JIRA, see: http://www.atlassian.com/software/jira