From 3aa5ce6208ee2cb6fd3291b40a75ddabf4c0c645 Mon Sep 17 00:00:00 2001 From: carlossa Date: Fri, 26 May 2023 14:23:34 +0200 Subject: [PATCH] refs #5334 fix hasToSendMail --- modules/worker/front/department/card/index.js | 2 +- modules/worker/front/department/descriptor/index.js | 2 +- modules/worker/front/department/summary/index.js | 9 +++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/modules/worker/front/department/card/index.js b/modules/worker/front/department/card/index.js index 9b1ccf08d..72b0876a0 100644 --- a/modules/worker/front/department/card/index.js +++ b/modules/worker/front/department/card/index.js @@ -5,7 +5,7 @@ class Controller extends ModuleCard { reload() { const filter = { fields: ['id', 'name', 'code', 'workerFk', 'isProduction', 'chatName', - 'isTeleworking', 'notificationEmail', 'hasToRefill', 'hasToSendMai', 'hasToMistake', 'clientFk'], + 'isTeleworking', 'notificationEmail', 'hasToRefill', 'hasToSendMail', 'hasToMistake', 'clientFk'], include: [ { relation: 'client', diff --git a/modules/worker/front/department/descriptor/index.js b/modules/worker/front/department/descriptor/index.js index eb6489826..31a37e338 100644 --- a/modules/worker/front/department/descriptor/index.js +++ b/modules/worker/front/department/descriptor/index.js @@ -17,7 +17,7 @@ class Controller extends Descriptor { loadData() { const filter = { fields: ['id', 'name', 'code', 'workerFk', 'isProduction', 'chatName', - 'isTeleworking', 'notificationEmail', 'hasToRefill', 'hasToSendMai', 'hasToMistake', 'clientFk'], + 'isTeleworking', 'notificationEmail', 'hasToRefill', 'hasToSendMail', 'hasToMistake', 'clientFk'], include: [ { relation: 'client', diff --git a/modules/worker/front/department/summary/index.js b/modules/worker/front/department/summary/index.js index f40214be5..3c78e329f 100644 --- a/modules/worker/front/department/summary/index.js +++ b/modules/worker/front/department/summary/index.js @@ -14,7 +14,7 @@ class Controller extends Summary { const query = `Departments/${value.id}`; const filter = { fields: ['id', 'name', 'code', 'workerFk', 'isProduction', 'chatName', - 'isTeleworking', 'notificationEmail', 'hasToRefill', 'hasToSendMai', 'hasToMistake', 'clientFk'], + 'isTeleworking', 'notificationEmail', 'hasToRefill', 'hasToSendMail', 'hasToMistake', 'clientFk'], include: [ { relation: 'client', @@ -30,9 +30,10 @@ class Controller extends Summary { ] }; - this.$http.get(query, {params: {filter}}).then(res => { - this.$.worker = res.data; - }); + this.$http.get(query, {params: {filter}}) + .then(res => { + this.$.department = res.data; + }); } get isHr() {