mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-926: Fix connection CSV imports for fields with "(attribute)" and "(parameter)" suffixes
This commit is contained in:
@@ -286,7 +286,7 @@ angular.module('import').factory('connectionCSVService',
|
|||||||
else if (header.endsWith(PARAMETER_SUFFIX)) {
|
else if (header.endsWith(PARAMETER_SUFFIX)) {
|
||||||
|
|
||||||
// Push as an explicit parameter getter
|
// Push as an explicit parameter getter
|
||||||
const parameterName = header.replace(PARAMETER_SUFFIX);
|
const parameterName = header.replace(PARAMETER_SUFFIX, '');
|
||||||
transformConfig.parameterOrAttributeGetters.push(
|
transformConfig.parameterOrAttributeGetters.push(
|
||||||
row => ({
|
row => ({
|
||||||
type: 'parameters',
|
type: 'parameters',
|
||||||
@@ -300,7 +300,7 @@ angular.module('import').factory('connectionCSVService',
|
|||||||
else if (header.endsWith(ATTRIBUTE_SUFFIX)) {
|
else if (header.endsWith(ATTRIBUTE_SUFFIX)) {
|
||||||
|
|
||||||
// Push as an explicit attribute getter
|
// Push as an explicit attribute getter
|
||||||
const attributeName = header.replace(ATTRIBUTE_SUFFIX);
|
const attributeName = header.replace(ATTRIBUTE_SUFFIX, '');
|
||||||
transformConfig.parameterOrAttributeGetters.push(
|
transformConfig.parameterOrAttributeGetters.push(
|
||||||
row => ({
|
row => ({
|
||||||
type: 'attributes',
|
type: 'attributes',
|
||||||
|
Reference in New Issue
Block a user