refresh contact record after setting change
This commit is contained in:
parent
bb19c8ba4e
commit
4cfb1fe0cf
|
@ -100,6 +100,14 @@ function contacts_post(&$a) {
|
||||||
info( t('Contact updated.') . EOL);
|
info( t('Contact updated.') . EOL);
|
||||||
else
|
else
|
||||||
notice( t('Failed to update contact record.') . EOL);
|
notice( t('Failed to update contact record.') . EOL);
|
||||||
|
|
||||||
|
$r = q("select * from contact where id = %d and uid = %d limit 1",
|
||||||
|
intval($contact_id),
|
||||||
|
intval(local_user())
|
||||||
|
);
|
||||||
|
if($r && count($r))
|
||||||
|
$a->data['contact'] = $r[0];
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue