Results 1 to 2 of 2

Thread: [2.1.0] Ext.data.proxy.SQL crash on select with no sorters

    Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-3717 in a recent build.
  1. #1
    Sencha - Dev Team
    Join Date
    Aug 2012
    Location
    France
    Posts
    23
    Vote Rating
    0
      0  

    Default [2.1.0] Ext.data.proxy.SQL crash on select with no sorters

    Hi,

    The SQL proxy crashes at line 281:
    Code:
    ln = params.sorters.length;
    with the following error message: Uncaught TypeError: Cannot read property 'length' of null

    Use case:
    Code:
    Ext.define('App.model.Game', {
      extend: 'Ext.data.Model',
      config: {
        fields: [
          { name: 'id', type: 'int' },
                { name: 'name', type: 'string' }
        ],
    
        proxy: { type: 'sql' }
      }
    });
    Code:
    var store = Ext.create('Ext.data.Store', {
        model: 'App.model.Game',
        filters: [ {property: 'name', value: 'foo'} ],
        remoteFilter: true
    });
    
    store.load(function(records, operation, success) {
        [...]
    }
    Same kind of bug than those reported in this thread and this one, but 13 lines below

    Thanks

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,551
    Vote Rating
    1271
      0  

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •