Skip to content

Commit

Permalink
[FIX] Register the call to set_tcoken on the same list of deferred as…
Browse files Browse the repository at this point in the history
… those used to protect the call to load_cmis_repositories to ensure that the calls are done in the order expected by FIFO...
  • Loading branch information
lmignon committed Dec 21, 2016
1 parent 61951f7 commit ccd453e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions cmis_web_proxy/static/src/js/form_widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,14 @@ form_widgets.FieldCmisFolder.include({
},

set_cmis_session_token: function(){
var self = this;
if (this.apply_odoo_security){
self.cmis_session.setToken(self.gen_cmis_session_token());
this.cmis_session.setToken(this.gen_cmis_session_token());
}
},

set_root_folder_id: function(folderId) {
var self = this;
if (self.root_folder_id === folderId){
return;
}
$.when(self.cmis_session_initialized).done(function() {
$.when(self.cmis_session_initialized, self.table_rendered).done(function() {
self.set_cmis_session_token();
});
this._super.apply(this, arguments);
Expand Down

0 comments on commit ccd453e

Please sign in to comment.