ext5migrate: do not set a custome idProperty for the KeyValue model

ExtJS refuses with version to have an id set to an empty string, hence we can't
use our "key" property as a custom idProperty (an empty string for key is ok for us, and is used to set back a PVE property to its default value)

We always access the KeyValues entities via their Key property, so this change should be safe.
This commit is contained in:
Emmanuel Kasper 2015-08-18 10:36:57 +02:00 committed by Dietmar Maurer
parent d5301f2341
commit c8e0699d5d

View File

@ -61,8 +61,7 @@ Ext.define('PVE.RestProxy', {
Ext.define('KeyValue', {
extend: "Ext.data.Model",
fields: [ 'key', 'value' ],
idProperty: 'key'
fields: [ 'key', 'value' ]
});
Ext.define('KeyValuePendingDelete', {