Fix the ACME plugin edit form only detecting dirtychanges once the value of a textfield was dirtied and then changed back to the original.
This behaviour is caused by setting the originalValue directly without calling checkDirty. The reason is that the dirty flag of the textfield is set to true by setValue, and then not reset to false even though the value matches the original value. This is fixed by calling checkDirty after setting the originalValue to refresh the dirty flag. Signed-off-by: Filip Schauer <f.scha...@proxmox.com> --- Changes since v1: * Fix introduced bug that would set a dirty value as the original one when switching plugins. * Improve the commit message src/window/ACMEPluginEdit.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/window/ACMEPluginEdit.js b/src/window/ACMEPluginEdit.js index 0f21527..66ef02c 100644 --- a/src/window/ACMEPluginEdit.js +++ b/src/window/ACMEPluginEdit.js @@ -127,6 +127,7 @@ Ext.define('Proxmox.window.ACMEPluginEdit', { if (me.createdFields[key]) { me.createdFields[key].setValue(value); me.createdFields[key].originalValue = me.originalValues[key]; + me.createdFields[key].checkDirty(); } else { extradata.push(`${key}=${value}`); } -- 2.39.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel