mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-27 09:59: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', {
|
Ext.define('KeyValue', {
|
||||||
extend: "Ext.data.Model",
|
extend: "Ext.data.Model",
|
||||||
fields: [ 'key', 'value' ],
|
fields: [ 'key', 'value' ]
|
||||||
idProperty: 'key'
|
|
||||||
});
|
});
|
||||||
|
|
||||||
Ext.define('KeyValuePendingDelete', {
|
Ext.define('KeyValuePendingDelete', {
|
||||||
|
Loading…
Reference in New Issue
Block a user