mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-21 23:12:11 +01:00
fix changeset viewer for changesets without parent
This commit is contained in:
@@ -198,7 +198,11 @@ Sonia.repository.ChangesetViewerGrid = Ext.extend(Ext.grid.GridPanel, {
|
||||
},
|
||||
|
||||
renderIds: function(value, p, record){
|
||||
var parent = record.get('parents')[0];
|
||||
var parent = '';
|
||||
var parents = record.get('parents');
|
||||
if ( parents ){
|
||||
parent = parents[0];
|
||||
}
|
||||
return String.format(this.idsTemplate, value, parent);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user