Improvement to avoid the old queries for get the cases list

This commit is contained in:
Julio Cesar Laura
2012-11-28 17:32:31 -04:00
parent 4cdbd2668a
commit 0055a303fa

View File

@@ -93,11 +93,11 @@ try {
$oTasks = new Tasks(); $oTasks = new Tasks();
$oGroups = new Groups(); $oGroups = new Groups();
$oUser = new Users(); $oUser = new Users();
G::LoadClass( 'case' );
$oCases = new Cases();
list ($oCriteriaToDo, $sXMLFile) = $oCases->getConditionCasesList( 'to_do', $sUserToReassign ); $oAppCache = new AppCacheView();
list ($oCriteriaDraft, $sXMLFile) = $oCases->getConditionCasesList( 'draft', $sUserToReassign );
$oCriteriaToDo = $oAppCache->getToDoListCriteria($sUserToReassign);
$oCriteriaDraft = $oAppCache->getDraftListCriteria($sUserToReassign);
$aCasesList = Array (); $aCasesList = Array ();