Turn on favorites in infolog

This commit is contained in:
Nathan Gray 2013-04-09 09:37:30 +00:00
parent da4215844d
commit 78b2012334
2 changed files with 15 additions and 0 deletions

View File

@ -86,6 +86,20 @@ class infolog_hooks
if ($location == 'sidebox_menu') 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( $file = array(
'infolog list' => egw::link('/index.php',array( 'infolog list' => egw::link('/index.php',array(
'menuaction' => 'infolog.infolog_ui.index' )), 'menuaction' => 'infolog.infolog_ui.index' )),

View File

@ -881,6 +881,7 @@ else
$persist['called_as'] = $called_as; $persist['called_as'] = $called_as;
$persist['own_referer'] = $own_referer; $persist['own_referer'] = $own_referer;
$values['nm']['csv_fields'] = true; // get set in get_rows to not include all custom fields $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 // store whole $values[nm] in etemplate request
unset($values['nm']['rows']); unset($values['nm']['rows']);