fix bug with empty permission array

This commit is contained in:
Sebastian Sdorra
2010-12-28 15:27:32 +01:00
parent f1a3f8885c
commit 2a2696bf84

View File

@@ -229,6 +229,9 @@ Sonia.repository.FormPanel = Ext.extend(Sonia.rest.FormPanel,{
});
if ( update ){
if ( this.item.permissions == null ){
this.item.permissions = [];
}
this.permissionStore.loadData( this.item );
}