From 45085cccc87ecbc248220e65d64c3bcf15fcb075 Mon Sep 17 00:00:00 2001 From: carlossa Date: Tue, 30 May 2023 12:54:51 +0200 Subject: [PATCH] refs #5334 fix search-panel --- modules/worker/back/methods/department/filter.js | 2 +- modules/worker/back/models/department.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/worker/back/methods/department/filter.js b/modules/worker/back/methods/department/filter.js index 4c6eb3e69..232d30eed 100644 --- a/modules/worker/back/methods/department/filter.js +++ b/modules/worker/back/methods/department/filter.js @@ -77,7 +77,7 @@ module.exports = Self => { stmt = new ParameterizedSQL( `SELECT id, code, name - FROM department;` + FROM department d` ); stmt.merge(conn.makeSuffix(filter)); diff --git a/modules/worker/back/models/department.js b/modules/worker/back/models/department.js index 5a927fc64..061564a18 100644 --- a/modules/worker/back/models/department.js +++ b/modules/worker/back/models/department.js @@ -3,4 +3,5 @@ module.exports = Self => { require('../methods/department/createChild')(Self); require('../methods/department/removeChild')(Self); require('../methods/department/moveChild')(Self); + require('../methods/department/filter')(Self); };