mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Only load infolog list on first time.
Loading it again (in an ajax submit) will load it into addressbook.view etemplate2 object used as context for request, corrupting it.
This commit is contained in:
parent
564ac4e821
commit
a5fcb430ef
@ -2285,10 +2285,15 @@ window.egw_LAB.wait(function() {
|
||||
|
||||
$this->tmpl->exec('addressbook.addressbook_ui.view',$content,$sel_options,$readonlys,array('id' => $content['id']));
|
||||
|
||||
$GLOBALS['egw']->hooks->process(array(
|
||||
'location' => 'addressbook_view',
|
||||
'ab_id' => $content['id']
|
||||
));
|
||||
// Only load this on first time - we're using AJAX, so it stays there through submits.
|
||||
// Sending it again (via ajax) will break the addressbook.view etemplate2
|
||||
if($contact_id)
|
||||
{
|
||||
$GLOBALS['egw']->hooks->process(array(
|
||||
'location' => 'addressbook_view',
|
||||
'ab_id' => $content['id']
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user