Fix geolocation fails for some contacts

This commit is contained in:
Hadi Nategh 2016-06-01 09:55:57 +02:00
parent b3bbb83ab6
commit cd64de5aad

View File

@ -1008,12 +1008,12 @@ window.egw_LAB.wait(function() {
/** /**
* Ajax function to get contact data out of provided account_id * Ajax function to get contact data out of provided account_id
* *
* @param type $account_id * @param string $account_id
*/ */
function ajax_get_contact ($account_id) function ajax_get_contact ($account_id)
{ {
$bo = new Api\Contacts(); $bo = new Api\Contacts();
$contact = $bo->read('account:'.$account_id[0]); $contact = $bo->read('account:'.$account_id);
Api\Json\Response::get()->data($contact); Api\Json\Response::get()->data($contact);
} }