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:
Nathan Gray 2014-03-11 15:26:09 +00:00
parent 564ac4e821
commit a5fcb430ef

View File

@ -2285,11 +2285,16 @@ window.egw_LAB.wait(function() {
$this->tmpl->exec('addressbook.addressbook_ui.view',$content,$sel_options,$readonlys,array('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']
));
}
}
/**
* convert email-address in compose link