]> source.dussan.org Git - archiva.git/commitdiff
add comment as cannot knockout mapping when fields can be array or not
authorOlivier Lamy <olamy@apache.org>
Sun, 1 Jan 2012 00:46:41 +0000 (00:46 +0000)
committerOlivier Lamy <olamy@apache.org>
Sun, 1 Jan 2012 00:46:41 +0000 (00:46 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1226206 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/roles.js

index 344d2a6be2e1167b8f4a9e5bce01ff2ed7ae9725..6e36ca4b60d9a6716ea6a0e1492b300f2314a000 100644 (file)
@@ -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);