Results 1 to 6 of 6

Thread: selectPath does not work if idProperty type is int

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-16667 in 5.1.3.
  1. #1
    Sencha Premium Member
    Join Date
    Oct 2014
    Posts
    55

    Default selectPath does not work if idProperty type is int

    so I changed idProperty to a string and it works. (But I should be able to use int !)

    Here is where the bug is

    if (!current || (rooted && current.get(field) !== keys[1])) {

    this will probably fix the problem but it might have weaknesses

    if (!current || (rooted && current.get(field) != keys[1])) {

    Peter

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    Thanks for the report. Can you please post a test case which reproduces the issue you are experiencing?
    https://fiddle.sencha.com/#home

  3. #3
    Sencha Premium Member
    Join Date
    Nov 2010
    Posts
    53

  4. #4
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

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

  5. #5
    Sencha Premium Member
    Join Date
    Nov 2010
    Posts
    53

    Default

    Workaround code example (as rhubarb65 mentioned):
    Code:
    Ext.define('MyNode', { 
      extend: 'Ext.data.Model', 
    
      fields: [{ 
        name: 'id', 
        type: 'string' // explicit
      }]
    
      // ...
    });

  6. #6
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    Thanks for sharing that with the community.

Posting Permissions

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