View Full Version : [FIXED-EXTJSIV-2507]Array Reader bug

13 Jun 2011, 7:28 PM
If you create new model for array reader like below then field "Attributes" will map incorrect.

Ext.define('YourModelName', {
extend: 'Ext.data.Model'
,fields: [{
name: 'id'
,mapping: 4
,type: 'int'
,realName: 'DataID'
}, {
name: 'text'
,mapping: 11
,realName: 'Name'
}, {
name: 'attributes'
,mapping: 0
,realName: 'Attributes'

The problem come from buildExtractors of Ext.data.reader.Array. Should not use operator "||" for number

14 Jun 2011, 2:46 AM
Thanks for the report, this should be fixed in 4.0.4. As you said, it shouldn't check for || but rather a null value, which is the mapping default.