From 9fa2b669e4d0ddc4a76590d45669555a33a95e5f Mon Sep 17 00:00:00 2001 From: hc-github-team-secure-vault-core <82990506+hc-github-team-secure-vault-core@users.noreply.github.com> Date: Thu, 20 Jul 2023 20:18:34 -0400 Subject: [PATCH] backport UI: Remove logic that skips sending object if not changed (#21759) Co-authored-by: Chelsea Shaw <82459713+hashishaw@users.noreply.github.com> --- changelog/21739.txt | 3 +++ ui/app/serializers/application.js | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 changelog/21739.txt diff --git a/changelog/21739.txt b/changelog/21739.txt new file mode 100644 index 000000000..7b559d97c --- /dev/null +++ b/changelog/21739.txt @@ -0,0 +1,3 @@ +```release-note:bug +ui: Fixed an issue where editing an SSH role would clear `default_critical_options` and `default_extension` if left unchanged. +``` diff --git a/ui/app/serializers/application.js b/ui/app/serializers/application.js index 80ba21078..9f6659718 100644 --- a/ui/app/serializers/application.js +++ b/ui/app/serializers/application.js @@ -66,9 +66,6 @@ export default JSONSerializer.extend({ if (attributes.options.readOnly) { return; } - if (attributes.type === 'object' && val && Object.keys(val).length > 0 && valHasNotChanged) { - return; - } if (valIsBlank && valHasNotChanged) { return; }