#10850 agent detail view added to favorites system
This commit is contained in:
parent
3b6391102e
commit
ada52da898
|
@ -205,6 +205,14 @@ if ($loaded_filter['id_filter'] > 0) {
|
||||||
if (is_array($policies) === false) {
|
if (is_array($policies) === false) {
|
||||||
$policies = json_decode(io_safe_output($policies), true);
|
$policies = json_decode(io_safe_output($policies), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Fav menu.
|
||||||
|
$fav_menu = [
|
||||||
|
'id_element' => $loaded_filter['id_filter'],
|
||||||
|
'url' => 'operation/agentes/estado_agente&pure=&load_filter=1&filter_id='.$loaded_filter['id_filter'],
|
||||||
|
'label' => $loaded_filter['id_name'],
|
||||||
|
'section' => 'Agente',
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((bool) check_acl($config['id_user'], 0, 'AW') === true) {
|
if ((bool) check_acl($config['id_user'], 0, 'AW') === true) {
|
||||||
|
@ -249,7 +257,8 @@ ui_print_standard_header(
|
||||||
'link' => '',
|
'link' => '',
|
||||||
'label' => __('Views'),
|
'label' => __('Views'),
|
||||||
],
|
],
|
||||||
]
|
],
|
||||||
|
(empty($fav_menu) === true) ? [] : $fav_menu
|
||||||
);
|
);
|
||||||
|
|
||||||
if ((bool) $strict_user === false) {
|
if ((bool) $strict_user === false) {
|
||||||
|
|
Loading…
Reference in New Issue