From 0d680bdaed73cdc6666f81ef5643a25ff1181d49 Mon Sep 17 00:00:00 2001 From: Bernat Date: Tue, 16 Apr 2019 07:59:29 +0200 Subject: [PATCH] #1343 update worker filter --- modules/worker/back/methods/worker/filter.js | 7 +++++++ modules/worker/front/search-panel/index.html | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/worker/back/methods/worker/filter.js b/modules/worker/back/methods/worker/filter.js index 961abf291..0673c0e59 100644 --- a/modules/worker/back/methods/worker/filter.js +++ b/modules/worker/back/methods/worker/filter.js @@ -28,6 +28,11 @@ module.exports = Self => { type: 'Integer', description: 'The worker id', http: {source: 'query'} + }, { + arg: 'userFk', + type: 'Integer', + description: 'The user id', + http: {source: 'query'} }, { arg: 'fi', type: 'String', @@ -85,6 +90,8 @@ module.exports = Self => { ]}; case 'id': return {'w.id': value}; + case 'userFk': + return {'w.userFk': value}; case 'name': return {'w.name': {like: `%${value}%`}}; case 'firstName': diff --git a/modules/worker/front/search-panel/index.html b/modules/worker/front/search-panel/index.html index 14abcad45..eda57c540 100644 --- a/modules/worker/front/search-panel/index.html +++ b/modules/worker/front/search-panel/index.html @@ -18,7 +18,7 @@ + model="filter.userFk">