diff --git a/modules/worker/front/department/summary/index.html b/modules/worker/front/department/summary/index.html index 9bb5173835..4cc8a46170 100644 --- a/modules/worker/front/department/summary/index.html +++ b/modules/worker/front/department/summary/index.html @@ -26,13 +26,13 @@ + value="{{summary.worker.firstName}} {{summary.worker.lastName}}"> + value="{{summary.client.name}}"> diff --git a/modules/worker/front/department/summary/index.js b/modules/worker/front/department/summary/index.js index 6fbffc852b..25dca63419 100644 --- a/modules/worker/front/department/summary/index.js +++ b/modules/worker/front/department/summary/index.js @@ -8,9 +8,19 @@ class Controller extends Component { if (!value) return; const filter = { + fields: ['id', 'name', 'code', 'workerFk', 'isProduction', 'chatName', + 'isTeleworking', 'notificationEmail', 'hasToRefill', 'hasToSendMai', 'hasToMistake', 'clientFk'], include: [ - {relation: 'client'}, - {relation: 'worker'} + {relation: 'client', + scope: { + fields: ['id', 'name'] + }}, + { + relation: 'worker', + scope: { + fields: ['id', 'firstName', 'lastName'] + } + } ] };