BUG 10083 skins not being remembered after logout IMPROVEMENT

- According to the specifications.
- Was add cookie for save skin of workspace.
This commit is contained in:
Marco Antonio Nina
2012-12-14 11:43:43 -04:00
parent 0d59dccdb6
commit a157292688
3 changed files with 27 additions and 11 deletions

View File

@@ -98,9 +98,11 @@ class Home extends Controller
$processList = $case->getStartCasesPerType( $_SESSION['USER_LOGGED'], 'category' );
$switchLink = $userProperty->getUserLocation( $_SESSION['USER_LOGGED'] );
if (substr( $sysConf['default_skin'], 0, 2 ) == 'ux') {
$_SESSION['_defaultUserLocation'] = $switchLink;
$switchLink = '/sys' . SYS_SYS . '/' . SYS_LANG . '/' . $sysConf['default_skin'] . '/main';
if (!isset($_COOKIE['workspaceSkin'])) {
if (substr( $sysConf['default_skin'], 0, 2 ) == 'ux') {
$_SESSION['_defaultUserLocation'] = $switchLink;
$switchLink = '/sys' . SYS_SYS . '/' . SYS_LANG . '/' . $sysConf['default_skin'] . '/main';
}
}
unset( $processList[0] );