Fixed menu add sections that it isnt in menu

This commit is contained in:
m-lopez-f 2015-04-23 08:44:04 +02:00
parent 3d2adc315e
commit 645875a3a1
1 changed files with 9 additions and 7 deletions

View File

@ -322,11 +322,11 @@ $sub["operation/users/webchat"]["refr"] = 0;
if (check_acl ($config['id_user'], 0, "IR") == 1) {
$temp_sec2 = $sec2;
if($config['integria_enabled']) {
$sec2 = "operation/integria_incidents/incident";
$sec2 = "incident";
$sec2sub = "operation/integria_incidents/incident_statistics";
}
else {
$sec2 = "operation/incidents/incident";
$sec2 = "incident";
$sec2sub = "operation/incidents/incident_statistics";
}
@ -339,6 +339,7 @@ if (check_acl ($config['id_user'], 0, "IR") == 1) {
"operation/integria_incidents");
$sub2 = array ();
$sub2['operation/incidents/incident']["text"] = _("List of Incidents");
$sub2[$sec2sub]["text"] = __('Statistics');
$sub[$sec2]["sub2"] = $sub2;
@ -347,14 +348,15 @@ if (check_acl ($config['id_user'], 0, "IR") == 1) {
// Messages
$sub["operation/messages/message_list"]["text"] = __('Messages');
$sub["operation/messages/message_list"]["refr"] = 0;
$sub["operation/messages/message_list"]["type"] = "direct";
$sub["operation/messages/message_list"]["subtype"] = "nolink";
$sub["message_list"]["text"] = __('Messages');
$sub["message_list"]["refr"] = 0;
$sub["message_list"]["type"] = "direct";
$sub["message_list"]["subtype"] = "nolink";
$sub2 = array ();
$sub2["operation/messages/message_list"]["text"] = __('Messages List');
$sub2["operation/messages/message_edit&new_msg=1"]["text"] = __('New message');
$sub["operation/messages/message_list"]["sub2"] = $sub2;
$sub["message_list"]["sub2"] = $sub2;
$menu_operation["workspace"]["sub"] = $sub;