mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-07-04 11:38:44 +02:00
fix wrong id property
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user