-
14 Oct 2010 1:23 PM #1
[OPEN-1332] Bug in Ext.data.Store: find method
[OPEN-1332] Bug in Ext.data.Store: find method
In the Ext.data.Store of ExtJs 3.x.x, the find method has the following code:
The createFilterFn method has a signature of :Code:find : function(property, value, start, anyMatch, caseSensitive){ var fn = this.createFilterFn(property, value, anyMatch, caseSensitive); return fn ? this.data.findIndexBy(fn, null, start) : -1; },
If you call the find method without the exact match parameter passed, it defaults to finding any match, which can be problematic if you are looking for a specific record and not just any record(s). By adding the exactMatch parameter to the signature of the find method and the call to createFilterFn, this problem is resolved.Code:createFilterFn : function(property, value, anyMatch, caseSensitive, exactMatch){
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[OPEN-432][3.??] Issue with Ext.data.DataReader realize method
By mlitcher in forum Ext 3.x: BugsReplies: 8Last Post: 20 Jun 2011, 6:59 AM -
[FIXED-347] 0.95 Ext.data.Connection method request(o) wrongly uses disableCaching
By touchy in forum Sencha Touch 1.x: BugsReplies: 3Last Post: 28 Oct 2010, 1:53 PM -
[FIXED-371] Ext.data.Connection().request() method defaults to post
By mark.postal in forum Sencha Touch 1.x: BugsReplies: 2Last Post: 18 Oct 2010, 3:51 PM -
*SOLVED* Problem with Ext.data.store.find
By gpstatnon in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 21 Sep 2010, 6:27 AM -
Is Ext.Data.JSONReader invoked when add method is called on Ext.Data.Store
By nagavasantha in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 9 Sep 2009, 7:34 AM


Reply With Quote