mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
Turn on favorites in infolog
This commit is contained in:
parent
da4215844d
commit
78b2012334
@ -86,6 +86,20 @@ class infolog_hooks
|
||||
|
||||
if ($location == 'sidebox_menu')
|
||||
{
|
||||
// Magic etemplate2 favorites menu (from nextmatch widget)
|
||||
$et = new ReflectionClass('etemplate');
|
||||
$is_et2 = ($et->isSubclassOf(new ReflectionClass('etemplate_widget')));
|
||||
if($is_et2)
|
||||
{
|
||||
display_sidebox($appname,lang('Favorites'),array(
|
||||
array(
|
||||
'no_lang' => true,
|
||||
'text'=> etemplate_widget_nextmatch::favorite_list('infolog','infolog.infolog_ui.get_rows'),
|
||||
'link'=>false,
|
||||
'icon' => false
|
||||
)
|
||||
));
|
||||
}
|
||||
$file = array(
|
||||
'infolog list' => egw::link('/index.php',array(
|
||||
'menuaction' => 'infolog.infolog_ui.index' )),
|
||||
|
@ -881,6 +881,7 @@ else
|
||||
$persist['called_as'] = $called_as;
|
||||
$persist['own_referer'] = $own_referer;
|
||||
$values['nm']['csv_fields'] = true; // get set in get_rows to not include all custom fields
|
||||
$values['nm']['favorites'] = true;
|
||||
|
||||
// store whole $values[nm] in etemplate request
|
||||
unset($values['nm']['rows']);
|
||||
|
Loading…
Reference in New Issue
Block a user