mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
Fix disabled favorite menu in SideMenu of Addressbook.
This commit is contained in:
parent
e7a5418af2
commit
484a2bf6fc
@ -29,11 +29,7 @@ class addressbook_hooks
|
|||||||
if ($location == 'sidebox_menu')
|
if ($location == 'sidebox_menu')
|
||||||
{
|
{
|
||||||
// Magic etemplate2 favorites menu (from nextmatch widget)
|
// Magic etemplate2 favorites menu (from nextmatch widget)
|
||||||
$et = new ReflectionClass('etemplate');
|
display_sidebox($appname,lang('Favorites'),array(
|
||||||
$is_et2 = ($et->isSubclassOf(new ReflectionClass('etemplate_widget')));
|
|
||||||
if($is_et2)
|
|
||||||
{
|
|
||||||
display_sidebox($appname,lang('Favorites'),array(
|
|
||||||
array(
|
array(
|
||||||
'no_lang' => true,
|
'no_lang' => true,
|
||||||
'text'=> etemplate_widget_nextmatch::favorite_list('addressbook','addressbook.addressbook_ui.get_rows'),
|
'text'=> etemplate_widget_nextmatch::favorite_list('addressbook','addressbook.addressbook_ui.get_rows'),
|
||||||
@ -41,7 +37,6 @@ class addressbook_hooks
|
|||||||
'icon' => false
|
'icon' => false
|
||||||
)
|
)
|
||||||
));
|
));
|
||||||
}
|
|
||||||
$file = array(
|
$file = array(
|
||||||
'Add' => "javascript:egw_openWindowCentered2('".
|
'Add' => "javascript:egw_openWindowCentered2('".
|
||||||
egw::link('/index.php',array('menuaction' => 'addressbook.addressbook_ui.edit'),false).
|
egw::link('/index.php',array('menuaction' => 'addressbook.addressbook_ui.edit'),false).
|
||||||
|
Loading…
Reference in New Issue
Block a user