Merged in bugfix/PMCORE-3686 (pull request #8397)

PMCORE-3686

Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
Paula Quispe
2022-03-21 13:48:15 +00:00
committed by Julio Cesar Laura Avendaño
2 changed files with 8 additions and 6 deletions

View File

@@ -35,10 +35,10 @@
"laravel/framework": "5.7.*",
"luracast/restler": "3.0",
"bshaffer/oauth2-server-php": "v1.0",
"colosa/pmui": "release/3.7.3-dev",
"colosa/michelangelofe": "release/3.7.3-dev",
"colosa/pmdynaform": "release/3.7.3-dev",
"colosa/taskscheduler": "release/1.0.2-dev",
"colosa/pmui": "release/3.7.4-dev",
"colosa/michelangelofe": "release/3.7.4-dev",
"colosa/pmdynaform": "release/3.7.4-dev",
"colosa/taskscheduler": "release/1.0.3-dev",
"google/apiclient": "1.1.6",
"dapphp/securimage": "^3.6",
"psr/log": "1.0.0",

View File

@@ -102,8 +102,10 @@ class Search extends AbstractCases
}
// Filter by task
if ($this->getTaskId()) {
// Join with delegation
$query->joinDelegation();
if (!$this->getUserId()) {
// Join with delegation if was not defined before
$query->joinDelegation();
}
// Add the filter
$query->task($this->getTaskId());
// Get only the open threads related to the task