From d45f65954d70d3f2494a1622736e7220e839851d Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Sun, 1 Jan 2012 00:46:41 +0000 Subject: [PATCH] add comment as cannot knockout mapping when fields can be array or not git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1226206 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva-webapp-js/src/main/webapp/js/redback/roles.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/roles.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/roles.js index 344d2a6be..6e36ca4b6 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/roles.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/roles.js @@ -146,6 +146,8 @@ $(function() { * @param data Role response from redback rest api */ mapRole=function(data) { + // olamy this mapping has issues when fields are array or not + //return ko.mapping.fromJS(data); // name, description, assignable,childRoleNames,parentRoleNames,users,parentsRolesUsers,permissions //$.log("mapRole:"+data.name+":"); var childRoleNames = mapStringArray(data.childRoleNames); -- 2.39.5