Results 1 to 3 of 3

Thread: PullRefresh plugin includes sorters on operation even when remoteSort=false

    You found a bug! We've classified it as TOUCH-5350 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User
    Join Date
    Feb 2011
    Posts
    7

    Default PullRefresh plugin includes sorters on operation even when remoteSort=false

    Touch version tested:

    • Touch 2.3.1

    Description:

    • PullRefresh plugin includes sorters on operation even when store's remoteSort property is set to false

    Steps to reproduce the problem:

    1. Create a store that's configured to use an Ajax proxy
    2. Make sure the store's remoteSort property is false
    3. Add one or more local sorters to the store
    4. Wire the store up to a list that uses the PullRefresh plugin and pull down to refresh

    The result that was expected:

    • The AJAX request made to the server doesn't include any of the local sorters

    The result that occurs instead:

    • The AJAX request made to the server includes the local sorters

    The issue lies in the PullRefresh plugin's fetchLatest method. It needs to check that store.getRemoteSort() returns true before adding the store's sorters to the operation.

    Code:
        fetchLatest: function() {
            var store = this.getList().getStore(),
                proxy = store.getProxy(),
                operation;
    
            operation = Ext.create('Ext.data.Operation', {
                page: 1,
                start: 0,
                model: store.getModel(),
                limit: store.getPageSize(),
                action: 'read',
                sorters: store.getSorters(),
                filters: store.getRemoteFilter() ? store.getFilters() : []
            });
    
            proxy.read(operation, this.onLatestFetched, this);
        }

  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    4,108

    Default

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

  3. #3
    Sencha User
    Join Date
    Dec 2007
    Posts
    43

    Default

    Is this still an open issue? I'm running into the same thing in version 2.4.2.571

Posting Permissions

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