mirror of https://github.com/OCA/web.git
[14.0] web_search_and - Make functional again
Fixes breaking change introduced at #1976.pull/2531/head
parent
131385b682
commit
9878fdd88c
|
@ -26,19 +26,20 @@ odoo.define(
|
||||||
queryElem_val.operator === operator
|
queryElem_val.operator === operator
|
||||||
);
|
);
|
||||||
if (!queryElem) {
|
if (!queryElem) {
|
||||||
const {groupId} = this.state.filters[filterId];
|
|
||||||
this.state.query.push({
|
|
||||||
filterId,
|
|
||||||
groupId,
|
|
||||||
label,
|
|
||||||
value,
|
|
||||||
operator,
|
|
||||||
});
|
|
||||||
if (isShiftKey) {
|
if (isShiftKey) {
|
||||||
const group_id = Math.random();
|
const groupId = Math.random();
|
||||||
this.state.query.push({
|
this.state.query.push({
|
||||||
filterId,
|
filterId,
|
||||||
group_id,
|
groupId,
|
||||||
|
label,
|
||||||
|
value,
|
||||||
|
operator,
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
const {groupId} = this.state.filters[filterId];
|
||||||
|
this.state.query.push({
|
||||||
|
filterId,
|
||||||
|
groupId,
|
||||||
label,
|
label,
|
||||||
value,
|
value,
|
||||||
operator,
|
operator,
|
||||||
|
|
Loading…
Reference in New Issue