[fix] problem with context handling in on_change when there is no context

bzr revid: nicolas.vanhoren@openerp.com-20110704113740-fv3s5wrzlnkagpuv
This commit is contained in:
niv-openerp 2011-07-04 13:37:40 +02:00
parent 59f75a3eae
commit ee1ec9dae7
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ openerp.base.FormView = openerp.base.View.extend( /** @lends openerp.base.FormV
model: this.dataset.model,
method: method,
args: [(this.datarecord.id == null ? [] : [this.datarecord.id])].concat(args),
context_id: context_index + 1
context_id: context_index === null ? null : context_index + 1
}, function(response) {
self.on_processed_onchange(response, processed);
});