From 886696000965e4c1ba0ab97c4cf78ccc54e29f73 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 31 Jan 2019 11:02:20 +0530 Subject: [PATCH] use in operator(&) to query many ids --- static/js/editDialog.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/static/js/editDialog.js b/static/js/editDialog.js index 1b3aebf..6f6b201 100644 --- a/static/js/editDialog.js +++ b/static/js/editDialog.js @@ -77,15 +77,16 @@ oml.ui.editDialog = function() { oml.api.find({ keys: keys, query: { - conditions: ids.map(function(id) { - return { + conditions: [ + { key: 'id', - operator: '==', - value: id - }; - }), - operator: '|' - } + operator: '&', + value: ids + } + ], + operator: '&' + }, + range: [0, ids.length] }, function(result) { var data = {}, isMixed = {},