View Full Version : [CLOSED] Convert not running on Ext.Create('model', data)

12 May 2015, 10:39 AM
In Sencha touch, when creating a model, the convert functions are called. In ExtJS6, when creating a model, the convert functions are not being called.

The below fiddle shows 'I am false' (correctly) in Sencha Touch 2.4.1. In ExtJS6, the fiddle shows 'I am true', which is incorrect. The reason it shows true, is the value is set to the string 'false', instead of the value false.


I also attempted to add my own converter, but it's never called when the model create is called.

Gary Schlosberg
12 May 2015, 12:02 PM
Thanks for the report! I have opened a bug in our bug tracker.

14 May 2015, 6:29 PM
You need to pull the field definitions out of the config block. This change will be noted as part of the upgrade guide, fields are not an instance level model config, it doesn't make sense for them to be in the config block.

20 May 2015, 1:41 PM
Alright, that works. Thanks for the help.