BUG 8853 Adding the cases from "unassigned Folder" to simplified... SOLVED
- No had this option. - Was added the functionality Unassigned Inbox.
This commit is contained in:
@@ -58,6 +58,8 @@ class Home extends Controller
|
||||
$this->setVar('usr', $data['u']);
|
||||
$this->setVar('pwd', $data['p']);
|
||||
$this->setVar('skin', $skin);
|
||||
echo "<br><br>Este es el template<br><br>";
|
||||
echo $template;
|
||||
|
||||
$this->setView("home/$template");
|
||||
|
||||
@@ -193,6 +195,7 @@ class Home extends Controller
|
||||
switch ($httpData->t) {
|
||||
case 'todo' : $title = 'My Inbox'; break;
|
||||
case 'draft' : $title = 'My Drafts'; break;
|
||||
case 'unassigned' : $title = 'Unassigned Inbox'; break;
|
||||
default: $title = ucwords($httpData->t);
|
||||
}
|
||||
|
||||
@@ -209,7 +212,7 @@ class Home extends Controller
|
||||
$this->setVar('appListStart', $this->appListLimit);
|
||||
$this->setVar('appListLimit', 10);
|
||||
$this->setVar('listType', $httpData->t);
|
||||
|
||||
//print_r($this->render());
|
||||
$this->render();
|
||||
}
|
||||
|
||||
|
||||
@@ -2,9 +2,15 @@
|
||||
global $G_TMP_MENU;
|
||||
global $RBAC;
|
||||
|
||||
$G_TMP_MENU->AddIdRawOption("S_HOME", "home/appList?t=todo", G::LoadTranslation("ID_HOME"), "/images/simplified/in-set-grey.png", null, null, null);
|
||||
$G_TMP_MENU->AddIdRawOption("S_HOME", "home/appList?t=todo", G::LoadTranslation("ID_HOME"),
|
||||
"/images/simplified/in-set-grey.png", null, null, null);
|
||||
|
||||
if ($RBAC->userCanAccess("PM_CASES") == 1) {
|
||||
$G_TMP_MENU->AddIdRawOption("S_DRAFT", "home/appList?t=draft", G::LoadTranslation("ID_DRAFT"), "/images/simplified/folder-grey.png", null, null, null);
|
||||
$G_TMP_MENU->AddIdRawOption("S_NEW_CASE", "#", G::LoadTranslation("ID_NEW_CASE"), "/images/simplified/plus-set-grey.png", null, null, null);
|
||||
$G_TMP_MENU->AddIdRawOption("S_DRAFT", "home/appList?t=draft", G::LoadTranslation("ID_DRAFT"),
|
||||
"/images/simplified/folder-grey.png", null, null, null);
|
||||
$G_TMP_MENU->AddIdRawOption("S_DRAFT", "home/appList?t=unassigned", G::LoadTranslation("ID_UNASSIGNED"),
|
||||
"/images/simplified/folder-grey3.png", null, null, null);
|
||||
$G_TMP_MENU->AddIdRawOption("S_NEW_CASE", "#", G::LoadTranslation("ID_NEW_CASE"),
|
||||
"/images/simplified/plus-set-grey.png", null, null, null);
|
||||
}
|
||||
|
||||
|
||||
@@ -58,16 +58,26 @@ switch ($RBAC->userCanAccess('PM_CASES'))
|
||||
//if there are no user in the delegation row, this case is still in selfservice
|
||||
if ( $aDelegation['USR_UID'] == "" ) {
|
||||
$oCase->setCatchUser( $_SESSION['APPLICATION'], $_SESSION['INDEX'], $_SESSION['USER_LOGGED'] );
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
G::SendMessageText(G::LoadTranslation('ID_CASE_ALREADY_DERIVATED'), 'error');
|
||||
}
|
||||
|
||||
$validation = (SYS_SKIN != 'uxs')? 'true' : 'false';
|
||||
|
||||
die('<script type="text/javascript">
|
||||
if ('.$validation.') {
|
||||
if (window.parent.frames.length != 0) {
|
||||
parent.location = "open?APP_UID=' . $_SESSION['APPLICATION'] . '&DEL_INDEX=' . $_SESSION['INDEX'] . '&action=unassigned";
|
||||
parent.location = "open?APP_UID=' . $_SESSION['APPLICATION'] . '&DEL_INDEX=' . $_SESSION['INDEX'] .
|
||||
'&action=unassigned";
|
||||
}
|
||||
else {
|
||||
window.location = "../cases/cases_Open?APP_UID=' . $_SESSION['APPLICATION'] . '&DEL_INDEX=' . $_SESSION['INDEX'] . '&action=unassigned";
|
||||
window.location = "../cases/cases_Open?APP_UID=' . $_SESSION['APPLICATION'] . '&DEL_INDEX=' .
|
||||
$_SESSION['INDEX'] . '&action=unassigned";
|
||||
}
|
||||
</script>');
|
||||
} else {
|
||||
window.location = "../cases/cases_Open?APP_UID=' . $_SESSION['APPLICATION'] . '&DEL_INDEX=' .
|
||||
$_SESSION['INDEX'] . '&action=unassigned";
|
||||
}
|
||||
</script>'
|
||||
);
|
||||
|
||||
|
||||
BIN
workflow/public_html/images/simplified/folder-grey3.png
Normal file
BIN
workflow/public_html/images/simplified/folder-grey3.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
Reference in New Issue
Block a user