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:
Victor Saisa Lopez
2013-01-09 15:43:08 -04:00
parent 7fd5064ab2
commit d1c28c99de
2 changed files with 4 additions and 2 deletions

View File

@@ -345,7 +345,7 @@ class Applications
//Check also $distinct in the method getListCounters(), this in AppCacheView.php
$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;
}
@@ -366,7 +366,8 @@ class Applications
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

View File

@@ -62,6 +62,7 @@ class AppCacheView extends BaseAppCacheView
break;
case 'selfservice':
$criteria = $this->getUnassignedCountCriteria($userUid);
$distinct = false;
break;
case 'paused':
$criteria = $this->getPausedCountCriteria($userUid);