mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-27 03:55:33 +00:00
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:
parent
d5301f2341
commit
c8e0699d5d
@ -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', {
|
||||
|
Loading…
Reference in New Issue
Block a user