diff --git a/resources/js/common/PMColumnFilterPopoverCommonMixin.js b/resources/js/common/PMColumnFilterPopoverCommonMixin.js index 6b03592443..b1685a2260 100644 --- a/resources/js/common/PMColumnFilterPopoverCommonMixin.js +++ b/resources/js/common/PMColumnFilterPopoverCommonMixin.js @@ -123,7 +123,7 @@ const PMColumnFilterCommonMixin = { if (column.format) { format = column.format; } - if (column.field === "status" || column.field === "assignee" || column.field === "participants" || column.field === 'process') { + if (column.field === "status" || column.field === "assignee" || column.field === "participants") { format = "stringSelect"; } return format; @@ -139,14 +139,14 @@ const PMColumnFilterCommonMixin = { if (column.field === "participants") { formatRange = this.viewParticipants; } - if (column.field === "process") { - formatRange = this.viewProcesses; - } return formatRange; }, getOperators(column) { let operators = []; - if (column.field === "status" || column.field === "assignee" || column.field === "participants" || column.field === 'process') { + if (column.field === "case_title" || column.field === "name" || column.field === "process" || column.field === "task_name") { + operators = ["=", "in", "contains", "regex"]; + } + if (column.field === "status" || column.field === "assignee" || column.field === "participants") { operators = ["=", "in"]; } return operators; diff --git a/resources/js/tasks/components/TasksList.vue b/resources/js/tasks/components/TasksList.vue index 1586c17c33..be0769f7a9 100644 --- a/resources/js/tasks/components/TasksList.vue +++ b/resources/js/tasks/components/TasksList.vue @@ -535,15 +535,14 @@ export default { let type = "Field"; //The inclusion of the alias in the comparison is necessary to ensure the correct //type is obtained when the column has been modified by the method getAliasColumnForFilter(). - if (value === "case_number" || - value === "case_title" || - value === "processRequest.case_number" || - value === "processRequest.case_title") { + if (value === "case_number" || + value === "case_title" || + value === "process" || + value === "processRequest.case_number" || + value === "processRequest.case_title" || + value === "processRequest.name") { type = "Relationship"; } - if (value === "process") { - type = "Process"; - } if (value === "status") { type = "Status"; } @@ -556,6 +555,9 @@ export default { if (value === "case_title") { value = "processRequest.case_title"; } + if (value === "process") { + value = "processRequest.name"; + } if (value === "task_name") { value = "element_name"; }