diff --git a/scm-webapp/src/main/webapp/resources/js/group/sonia.group.grid.js b/scm-webapp/src/main/webapp/resources/js/group/sonia.group.grid.js index 7ed4599e6b..17e2f90d9a 100644 --- a/scm-webapp/src/main/webapp/resources/js/group/sonia.group.grid.js +++ b/scm-webapp/src/main/webapp/resources/js/group/sonia.group.grid.js @@ -48,7 +48,7 @@ Sonia.group.Grid = Ext.extend(Sonia.rest.Grid, { url: restUrl + 'groups.json', disableCaching: false }), - id: 'name', + idProperty: 'name', fields: [ 'name', 'members', 'description', 'creationDate', 'type', 'properties'], sortInfo: { field: 'name' diff --git a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.grid.js b/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.grid.js index 02a2829f39..d23f576795 100644 --- a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.grid.js +++ b/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.grid.js @@ -52,7 +52,7 @@ Sonia.repository.Grid = Ext.extend(Sonia.rest.Grid, { url: restUrl + 'repositories.json', disableCaching: false }), - id: 'id', + idProperty: 'id', fields: [ 'id', 'name', 'type', 'contact', 'description', 'creationDate', 'url', 'public', 'permissions', 'properties' ], sortInfo: { field: 'name' diff --git a/scm-webapp/src/main/webapp/resources/js/rest/sonia.rest.grid.js b/scm-webapp/src/main/webapp/resources/js/rest/sonia.rest.grid.js index 08f06bc7e0..2c4e1a684a 100644 --- a/scm-webapp/src/main/webapp/resources/js/rest/sonia.rest.grid.js +++ b/scm-webapp/src/main/webapp/resources/js/rest/sonia.rest.grid.js @@ -134,6 +134,9 @@ Sonia.rest.Grid = Ext.extend(Ext.grid.GridPanel, { }, selectById: function(id){ + if (debug){ + console.debug( 'select by id ' + id ); + } var index = this.getStore().indexOfId(id); if ( index >= 0 ){ this.getSelectionModel().selectRow(index); diff --git a/scm-webapp/src/main/webapp/resources/js/user/sonia.user.grid.js b/scm-webapp/src/main/webapp/resources/js/user/sonia.user.grid.js index 506d0d60a7..fa0b998d6f 100644 --- a/scm-webapp/src/main/webapp/resources/js/user/sonia.user.grid.js +++ b/scm-webapp/src/main/webapp/resources/js/user/sonia.user.grid.js @@ -51,7 +51,7 @@ Sonia.user.Grid = Ext.extend(Sonia.rest.Grid, { url: restUrl + 'users.json', disableCaching: false }), - id: 'name', + idProperty: 'name', fields: [ 'name', 'displayName', 'mail', 'admin', 'creationDate', 'lastModified', 'type', 'properties'], sortInfo: { field: 'name'