Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member cnelissen's Avatar
    Join Date
    Sep 2007
    Location
    California
    Posts
    222
    Vote Rating
    7
    cnelissen is on a distinguished road

      0  

    Default [FIXED-201] Store.filter Broken

    [FIXED-201] Store.filter Broken


    This code works fine in 0.91, but is broken in 0.92 and 0.93. Here is a demo of the issue.

    Code:
    <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Store Filter Test</title>
    <script type="text/javascript" src="../../ext-touch-debug.js"></script>
    <script type="text/javascript">
    Ext.setup({
    	onReady: function() {
    		Ext.regModel('Test', {
                fields: ['name','category']
            });
    		var dataStore = new Ext.data.Store({
    			model: 'Test',
    			data: [
    				{name: 'Test 1', category: 'category-1'},
    				{name: 'Test 2', category: 'category-1'},
    				{name: 'Test 3', category: 'category-2'},
    				{name: 'Test 4', category: 'category-2'},
    				{name: 'Test 5', category: 'category-3'},
    				{name: 'Test 6', category: 'category-3'}
    			]
    		});
    		console.log(dataStore.filters, dataStore.data);
    		dataStore.filter({property: 'category', value: 'category-1'});
    		console.log(dataStore.filters, dataStore.data);
    	}
    });
    </script>
    </head>
    
    <body>
    </body>
    </html>
    Expected output, 2 records. Actual output, 0 records.
    - Clint Nelissen

  2. #2
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    20
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Thank you for the report.

  3. #3
    Sencha - Community Support Team edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939
    Vote Rating
    9
    edspencer is a jewel in the rough edspencer is a jewel in the rough edspencer is a jewel in the rough

      0  

    Default


    This has now been fixed and will appear in the next release
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer

Similar Threads

  1. [FIXED-201] Design time scrolling...
    By j-joey in forum Ext Designer: Bugs
    Replies: 2
    Last Post: 17 Aug 2010, 12:23 PM
  2. [FIXED-70] Recent update(xds-1.0.0.3) has broken the store
    By jackygurui in forum Ext Designer: Bugs
    Replies: 1
    Last Post: 30 Mar 2010, 4:06 PM
  3. Replies: 17
    Last Post: 9 Mar 2010, 10:41 AM
  4. [FIXED-201][2.x,3.x] email regexp
    By Condor in forum Ext 3.x: Bugs
    Replies: 11
    Last Post: 31 Aug 2009, 9:07 AM
  5. Replies: 3
    Last Post: 30 Jun 2009, 2:47 AM

Thread Participants: 2