From 5ba439d9bfbda9c95c9d73943dedc48af1da88d2 Mon Sep 17 00:00:00 2001 From: joan Date: Mon, 26 Oct 2020 08:13:13 +0100 Subject: [PATCH] 2524 - Added search by socialName --- modules/client/front/main/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/client/front/main/index.js b/modules/client/front/main/index.js index cae95c1dd3..61cde8b22c 100644 --- a/modules/client/front/main/index.js +++ b/modules/client/front/main/index.js @@ -7,7 +7,7 @@ export default class Client extends ModuleMain { case 'search': return /^\d+$/.test(value) ? {id: value} - : {name: {like: `%${value}%`}}; + : {or: [{name: {like: `%${value}%`}}, {socialName: {like: `%${value}%`}}]}; case 'phone': return { or: [ -- 2.40.1