From a75367959b32768a83776002577e2ac171b85292 Mon Sep 17 00:00:00 2001 From: Paula Quispe Date: Mon, 18 Oct 2021 15:23:11 -0400 Subject: [PATCH] PMCORE-3427 --- .../src/ProcessMaker/BusinessModel/Cases/Participated.php | 5 ++++- .../src/ProcessMaker/BusinessModel/Cases/Supervising.php | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/workflow/engine/src/ProcessMaker/BusinessModel/Cases/Participated.php b/workflow/engine/src/ProcessMaker/BusinessModel/Cases/Participated.php index 9cf3f6e01..2cf482e26 100644 --- a/workflow/engine/src/ProcessMaker/BusinessModel/Cases/Participated.php +++ b/workflow/engine/src/ProcessMaker/BusinessModel/Cases/Participated.php @@ -67,7 +67,10 @@ class Participated extends AbstractCases } // Specific case title if (!empty($this->getCaseTitle())) { - $query->title($this->getCaseTitle()); + // Get the result + $result = Delegation::casesThreadTitle($this->getCaseTitle(), $this->getOffset(), $this->getLimit()); + // Add the filter + $query->specificCases($result); } // Scope to search for an specific process if ($this->getProcessId()) { diff --git a/workflow/engine/src/ProcessMaker/BusinessModel/Cases/Supervising.php b/workflow/engine/src/ProcessMaker/BusinessModel/Cases/Supervising.php index 231624882..bb4c61d67 100644 --- a/workflow/engine/src/ProcessMaker/BusinessModel/Cases/Supervising.php +++ b/workflow/engine/src/ProcessMaker/BusinessModel/Cases/Supervising.php @@ -65,7 +65,10 @@ class Supervising extends AbstractCases } // Specific case title if (!empty($this->getCaseTitle())) { - $query->title($this->getCaseTitle()); + // Get the result + $result = Delegation::casesThreadTitle($this->getCaseTitle(), $this->getOffset(), $this->getLimit()); + // Add the filter + $query->specificCases($result); } // Scope to search for an specific process if ($this->getProcessId()) {