diff --git a/modules/worker/back/methods/worker/filter.js b/modules/worker/back/methods/worker/filter.js
index d08b27a184..71a8da96f2 100644
--- a/modules/worker/back/methods/worker/filter.js
+++ b/modules/worker/back/methods/worker/filter.js
@@ -13,55 +13,59 @@ module.exports = Self => {
type: 'Object',
description: 'Filter defining where, order, offset, and limit - must be a JSON-encoded string',
http: {source: 'query'}
- }, {
- arg: 'tags',
- type: ['Object'],
- description: 'List of tags to filter with',
- http: {source: 'query'}
- }, {
+ },
+ {
arg: 'search',
type: 'String',
description: `If it's and integer searchs by id, otherwise it searchs by name`,
http: {source: 'query'}
- }, {
+ },
+ {
arg: 'id',
type: 'Integer',
description: 'The worker id',
http: {source: 'query'}
- }, {
+ },
+ {
arg: 'userFk',
type: 'Integer',
description: 'The user id',
http: {source: 'query'}
- }, {
+ },
+ {
arg: 'fi',
type: 'String',
description: 'The worker fi',
http: {source: 'query'}
- }, {
+ },
+ {
arg: 'departmentFk',
type: 'Integer',
description: 'The worker department id',
http: {source: 'query'}
- }, {
+ },
+ {
arg: 'extension',
type: 'Integer',
description: 'The worker extension id',
http: {source: 'query'}
- }, {
+ },
+ {
arg: 'firstName',
type: 'String',
description: 'The worker firstName',
http: {source: 'query'}
- }, {
- arg: 'name',
+ },
+ {
+ arg: 'lastName',
type: 'String',
- description: 'The worker name',
+ description: 'The worker lastName',
http: {source: 'query'}
- }, {
- arg: 'nickname',
+ },
+ {
+ arg: 'userName',
type: 'String',
- description: 'The worker nickname',
+ description: 'The worker user name',
http: {source: 'query'}
}
],
@@ -93,10 +97,10 @@ module.exports = Self => {
return {'w.id': value};
case 'userFk':
return {'w.userFk': value};
- case 'name':
- return {'w.lastName': {like: `%${value}%`}};
case 'firstName':
return {'w.firstName': {like: `%${value}%`}};
+ case 'lastName':
+ return {'w.lastName': {like: `%${value}%`}};
case 'extension':
return {'p.extension': value};
case 'fi':
diff --git a/modules/worker/front/search-panel/index.html b/modules/worker/front/search-panel/index.html
index ca57722c81..2adb565876 100644
--- a/modules/worker/front/search-panel/index.html
+++ b/modules/worker/front/search-panel/index.html
@@ -30,7 +30,7 @@
+ ng-model="filter.lastName">