PMCORE-1124

This commit is contained in:
Julio Cesar Laura Avendaño
2020-02-06 16:30:46 -04:00
parent 3c6faec73f
commit 627ecded7f
5 changed files with 1044 additions and 11 deletions

View File

@@ -131,7 +131,6 @@ $oHeadPublisher->assign("FORMATS", $conf->getFormats());
if (HIGHLIGHT_HOME_FOLDER_ENABLE) {
$oHeadPublisher->assign("highlightUrlProxy", "casesMenuHighlight?r=");
$oHeadPublisher->assign("highlightRefreshTime", HIGHLIGHT_HOME_FOLDER_REFRESH_TIME);
$oHeadPublisher->assign("highlightScope", HIGHLIGHT_HOME_FOLDER_SCOPE);
}
/*----------------------------------********---------------------------------*/

View File

@@ -68,19 +68,20 @@ class Lists
/*----------------------------------********---------------------------------*/
];
// If the feature for highlight the home folders is disabled, add self-service list to the map
if (!HIGHLIGHT_HOME_FOLDER_ENABLE) {
$this->mapList['ListSelfService'] = 'CASES_SELFSERVICE';
}
$this->ListInbox = new \ListInbox();
$this->ListDraft = new \ListInbox();
$this->ListCanceled = new \ListCanceled();
$this->ListParticipated = new \ListParticipatedLast();
$this->ListPaused = new \ListPaused();
$this->ListCompleted = new \ListCompleted();
$this->ListSelfService = new \ListUnassigned();
/*----------------------------------********---------------------------------*/
$this->ListConsolidated = new Consolidated();
// If the feature for highlight the home folders is disabled, add/initialize properties related to self-service list
if (!HIGHLIGHT_HOME_FOLDER_ENABLE) {
$this->mapList['ListSelfService'] = 'CASES_SELFSERVICE';
$this->ListSelfService = new \ListUnassigned();
}
/*----------------------------------********---------------------------------*/
}
@@ -153,11 +154,8 @@ class Lists
$listpeer = 'ListMyInboxPeer';
break;
case 'unassigned':
// If the feature for highlight the home folders is disabled, initialize the variables for unassigned list
if (!HIGHLIGHT_HOME_FOLDER_ENABLE) {
$list = new \ListUnassigned();
$listpeer = 'ListUnassignedPeer';
}
$list = new \ListUnassigned();
$listpeer = 'ListUnassignedPeer';
break;
}