From 6c5ed99df7a4fb344204551b5824b5667936ff0f Mon Sep 17 00:00:00 2001 From: Leonard Wagner <25386154+leonard2901@users.noreply.github.com> Date: Thu, 22 Feb 2024 13:16:34 +0100 Subject: [PATCH] GUACAMOLE-1925: Fix connection CSV imports for fields with "(attribute)" and "(parameter)" suffixes --- .../frontend/src/app/import/services/connectionCSVService.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guacamole/src/main/frontend/src/app/import/services/connectionCSVService.js b/guacamole/src/main/frontend/src/app/import/services/connectionCSVService.js index 641318b5bb..375ce0a2a0 100644 --- a/guacamole/src/main/frontend/src/app/import/services/connectionCSVService.js +++ b/guacamole/src/main/frontend/src/app/import/services/connectionCSVService.js @@ -286,7 +286,7 @@ angular.module('import').factory('connectionCSVService', else if (header.endsWith(PARAMETER_SUFFIX)) { // Push as an explicit parameter getter - const parameterName = header.replace(PARAMETER_SUFFIX); + const parameterName = header.replace(PARAMETER_SUFFIX, ''); transformConfig.parameterOrAttributeGetters.push( row => ({ type: 'parameters', @@ -300,7 +300,7 @@ angular.module('import').factory('connectionCSVService', else if (header.endsWith(ATTRIBUTE_SUFFIX)) { // Push as an explicit attribute getter - const attributeName = header.replace(ATTRIBUTE_SUFFIX); + const attributeName = header.replace(ATTRIBUTE_SUFFIX, ''); transformConfig.parameterOrAttributeGetters.push( row => ({ type: 'attributes',