BUG 9294 "Simplified experience plugins" SOLVED

- Request to enable and show the new submenus that have been created
  with plug-ins in the Simplified user experience.
- Code added for show the new submenus that have been created
  with plug-ins
This commit is contained in:
Victor Saisa Lopez
2012-06-14 16:03:30 -04:00
parent 1899262440
commit 7b5deb054b
3 changed files with 58 additions and 12 deletions

View File

@@ -86,7 +86,6 @@ class Home extends Controller
G::loadClass('system');
$sysConf = System::getSystemConfiguration(PATH_CONFIG . 'env.ini');
//Get ProcessStatistics Info
$start = 0;
$limit = '';
@@ -101,7 +100,34 @@ class Home extends Controller
}
unset($processList[0]);
//Get simplified options
global $G_TMP_MENU;
$mnu = new Menu();
$mnu->load('simplified');
$arrayMnuOption = array();
$mnuNewCase = array();
if (!empty($mnu->Options)) {
foreach ($mnu->Options as $index => $value) {
$option = array(
'id' => $mnu->Id[$index],
'url' => $mnu->Options[$index],
'label' => $mnu->Labels[$index],
'icon' => $mnu->Icons[$index],
'class' => $mnu->ElementClass[$index]
);
if ($mnu->Id[$index] != 'S_NEW_CASE') {
$arrayMnuOption[] = $option;
}
else {
$mnuNewCase = $option;
}
}
}
$this->setView('home/index');
$this->setVar('usrUid', $this->userID);
@@ -111,6 +137,8 @@ class Home extends Controller
$this->setVar('userUxType', $this->userUxType);
$this->setVar('clientBrowser', $this->clientBrowser['name']);
$this->setVar('switchLink', $switchLink);
$this->setVar('arrayMnuOption', $arrayMnuOption);
$this->setVar('mnuNewCase', $mnuNewCase);
$this->render();
}