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()) {