Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-1620 in a recent build.
  1. #1
    Sencha User
    Join Date
    Sep 2008
    Posts
    12
    Vote Rating
    0
    kisjonnk is on a distinguished road

      0  

    Default PR4 getTime() in Ext.data.proxy.WebStorage.setRecord

    PR4 getTime() in Ext.data.proxy.WebStorage.setRecord


    This causes an error if rawData[name] is null
    PHP Code:
    //in Ext.data.proxy.WebStorage.setRecord
    if (field.getType().type == 'date') {
      
    data[name] = rawData[name].getTime();
      } else { 
        
    data[name] = rawData[name];   


  2. #2
    Sencha - Sencha Touch Dev Team 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.

    Sencha Inc

    Jamie Avins

    @jamieavins

  3. #3
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    10
    TommyMaintz will become famous soon enough TommyMaintz will become famous soon enough

      0  

    Default


    Thanks, those lines should be the following:

    Code:
                    if (field.getType().type == 'date' && Ext.isDate(rawData[name])) {
                        data[name] = rawData[name].getTime();
                    } else {
                        data[name] = rawData[name];
                    }
    This will be fixed in the next release.

Thread Participants: 2