[FIX] web: SelectCreateDialog: don't erase domain
When a SelectCreateDialog was opened with a given domain, this domain was completely lost if the user wrote a new domain (or groupby) in the searchview, whereas they should be concatenated.
This commit is contained in:
@@ -375,11 +375,9 @@ var SelectCreateDialog = ViewDialog.extend({
|
||||
});
|
||||
},
|
||||
_process_search_data: function (domains, contexts, groupbys) {
|
||||
var user_context = this.getSession().user_context;
|
||||
contexts = [user_context].concat(contexts);
|
||||
var results = pyeval.eval_domains_and_contexts({
|
||||
domains: domains || [],
|
||||
contexts: contexts || [],
|
||||
domains: [this.domain].concat(domains),
|
||||
contexts: [this.context].concat(contexts),
|
||||
group_by_seq: groupbys || []
|
||||
});
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user