mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 00:45:44 +01:00
fix JsonMappingException
This commit is contained in:
@@ -187,12 +187,17 @@ Sonia.user.FormPanel = Ext.extend(Sonia.rest.FormPanel,{
|
||||
Sonia.user.FormPanel.superclass.initComponent.apply(this, arguments);
|
||||
},
|
||||
|
||||
fixRequest: function(user){
|
||||
delete user['password-confirm'];
|
||||
},
|
||||
|
||||
update: function(item){
|
||||
|
||||
item = Ext.apply( this.item, item );
|
||||
if ( debug ){
|
||||
console.debug( 'update user: ' + item.name );
|
||||
}
|
||||
this.fixRequest(item);
|
||||
var url = restUrl + 'users/' + item.name + '.json';
|
||||
Ext.Ajax.request({
|
||||
url: url,
|
||||
@@ -221,6 +226,7 @@ Sonia.user.FormPanel = Ext.extend(Sonia.rest.FormPanel,{
|
||||
if ( debug ){
|
||||
console.debug( 'create user: ' + user.name );
|
||||
}
|
||||
this.fixRequest(user);
|
||||
// set user type
|
||||
user.type = 'xml';
|
||||
var url = restUrl + 'users.json';
|
||||
|
||||
Reference in New Issue
Block a user