PM-00000 "Mejorar el performance en los Cases Lists nuevos" SOLVED

Issue:
    Mejorar el performance en los Cases Lists nuevos
Cause:
    El metodo "xssFilterHard" no esta optimizado, lo que ocasiona un bajo performance
Solution:
    - Se han optimizado estructuras-repetitivas
    - Se ha evitado el uso el metodo "xssFilterHard"
This commit is contained in:
Victor Saisa Lopez
2015-05-05 16:51:53 -04:00
parent 2880daf04a
commit 80d4814456
9 changed files with 79 additions and 56 deletions

View File

@@ -210,7 +210,7 @@ class ListMyInbox extends BaseListMyInbox
return (int)$total;
}
public function loadList ($usr_uid, $filters = array())
public function loadList($usr_uid, $filters = array(), $callbackRecord = null)
{
$criteria = new Criteria();
@@ -264,7 +264,8 @@ class ListMyInbox extends BaseListMyInbox
$data = array();
$aPriorities = array ('1' => 'VL','2' => 'L','3' => 'N','4' => 'H','5' => 'VH');
while ($dataset->next()) {
$aRow = $dataset->getRow();
$aRow = (is_null($callbackRecord))? $dataset->getRow() : $callbackRecord($dataset->getRow());
$aRow['DEL_PRIORITY'] = G::LoadTranslation( "ID_PRIORITY_{$aPriorities[$aRow['DEL_PRIORITY']]}" );
$data[] = $aRow;
}