BUG 10323 "Contador de unassigned no cuenta bien" SOLVED
- Not properly count cases in unassigned cases, using parallel fork in process - Solved problem in count, in unassigned cases * Available from version ProcessMaker-2.0.46
This commit is contained in:
@@ -345,7 +345,7 @@ class Applications
|
|||||||
//Check also $distinct in the method getListCounters(), this in AppCacheView.php
|
//Check also $distinct in the method getListCounters(), this in AppCacheView.php
|
||||||
$distinct = true;
|
$distinct = true;
|
||||||
|
|
||||||
if (($action == "todo" || $action == "to_reassign") || ($status == "TO_DO")) {
|
if (($action == "todo" || $action == "selfservice" || $action == "unassigned" || $action == "to_reassign") || ($status == "TO_DO")) {
|
||||||
$distinct = false;
|
$distinct = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -366,7 +366,8 @@ class Applications
|
|||||||
require_once (PATH_DB . SYS_SYS . PATH_SEP . "classes" . PATH_SEP . $tableName . ".php");
|
require_once (PATH_DB . SYS_SYS . PATH_SEP . "classes" . PATH_SEP . $tableName . ".php");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$totalCount = AppCacheViewPeer::doCount( $CriteriaCount, $distinct );
|
|
||||||
|
$totalCount = AppCacheViewPeer::doCount($CriteriaCount, $distinct);
|
||||||
}
|
}
|
||||||
|
|
||||||
//add sortable options
|
//add sortable options
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ class AppCacheView extends BaseAppCacheView
|
|||||||
break;
|
break;
|
||||||
case 'selfservice':
|
case 'selfservice':
|
||||||
$criteria = $this->getUnassignedCountCriteria($userUid);
|
$criteria = $this->getUnassignedCountCriteria($userUid);
|
||||||
|
$distinct = false;
|
||||||
break;
|
break;
|
||||||
case 'paused':
|
case 'paused':
|
||||||
$criteria = $this->getPausedCountCriteria($userUid);
|
$criteria = $this->getPausedCountCriteria($userUid);
|
||||||
|
|||||||
Reference in New Issue
Block a user