diff --git a/guacamole/src/main/webapp/app/rest/types/Connection.js b/guacamole/src/main/webapp/app/rest/types/Connection.js index 76ece9d58..89da4e117 100644 --- a/guacamole/src/main/webapp/app/rest/types/Connection.js +++ b/guacamole/src/main/webapp/app/rest/types/Connection.js @@ -84,7 +84,7 @@ angular.module('rest').factory('Connection', [function defineConnection() { * * @type Object. */ - this.attributes = {}; + this.attributes = template.attributes || {}; /** * The count of currently active connections using this connection. diff --git a/guacamole/src/main/webapp/app/rest/types/ConnectionGroup.js b/guacamole/src/main/webapp/app/rest/types/ConnectionGroup.js index a40dba19b..6da754c0c 100644 --- a/guacamole/src/main/webapp/app/rest/types/ConnectionGroup.js +++ b/guacamole/src/main/webapp/app/rest/types/ConnectionGroup.js @@ -95,7 +95,7 @@ angular.module('rest').factory('ConnectionGroup', [function defineConnectionGrou * * @type Object. */ - this.attributes = {}; + this.attributes = template.attributes || {}; /** * The count of currently active connections using this connection diff --git a/guacamole/src/main/webapp/app/rest/types/SharingProfile.js b/guacamole/src/main/webapp/app/rest/types/SharingProfile.js index ea8287d0a..50f1307d5 100644 --- a/guacamole/src/main/webapp/app/rest/types/SharingProfile.js +++ b/guacamole/src/main/webapp/app/rest/types/SharingProfile.js @@ -76,7 +76,7 @@ angular.module('rest').factory('SharingProfile', [function defineSharingProfile( * * @type Object. */ - this.attributes = {}; + this.attributes = template.attributes || {}; }; diff --git a/guacamole/src/main/webapp/app/rest/types/User.js b/guacamole/src/main/webapp/app/rest/types/User.js index f796147d6..3ca138d3b 100644 --- a/guacamole/src/main/webapp/app/rest/types/User.js +++ b/guacamole/src/main/webapp/app/rest/types/User.js @@ -69,7 +69,7 @@ angular.module('rest').factory('User', [function defineUser() { * * @type Object. */ - this.attributes = {}; + this.attributes = template.attributes || {}; }; diff --git a/guacamole/src/main/webapp/app/rest/types/UserGroup.js b/guacamole/src/main/webapp/app/rest/types/UserGroup.js index 03b73e29f..f4bf26cfe 100644 --- a/guacamole/src/main/webapp/app/rest/types/UserGroup.js +++ b/guacamole/src/main/webapp/app/rest/types/UserGroup.js @@ -50,7 +50,7 @@ angular.module('rest').factory('UserGroup', [function defineUserGroup() { * * @type Object. */ - this.attributes = {}; + this.attributes = template.attributes || {}; };