This commit is contained in:
Paula Quispe
2019-05-22 10:27:00 -04:00
parent ffee1de408
commit ef18b79e90
2 changed files with 213 additions and 162 deletions

View File

@@ -164,7 +164,7 @@ class Delegation extends Model
});
// Add join for process, but only for certain scenarios such as category or process
if (($category && !$process) || $sort == 'APP_PRO_TITLE') {
if ($category || $process || $sort == 'APP_PRO_TITLE') {
$query->join('PROCESS', function ($join) use ($category) {
$join->on('APP_DELEGATION.PRO_ID', '=', 'PROCESS.PRO_ID');
if ($category) {