connection clone issues
This commit is contained in:
parent
8c4eb839f9
commit
10102ac2ac
@ -2368,6 +2368,9 @@ function build_sync_packet($uid = 0, $packet = null, $groups_changed = false) {
|
|||||||
|
|
||||||
logger('build_sync_packet');
|
logger('build_sync_packet');
|
||||||
|
|
||||||
|
if($packet)
|
||||||
|
logger('packet: ' . print_r($packet,true),LOGGER_DATA);
|
||||||
|
|
||||||
if(! $uid)
|
if(! $uid)
|
||||||
$uid = local_user();
|
$uid = local_user();
|
||||||
|
|
||||||
|
@ -241,7 +241,7 @@ function connedit_clone(&$a) {
|
|||||||
unset($clone['abook_account']);
|
unset($clone['abook_account']);
|
||||||
unset($clone['abook_channel']);
|
unset($clone['abook_channel']);
|
||||||
|
|
||||||
build_sync_packet(0 /* use the current local_user */, array(array('abook' => array($clone))));
|
build_sync_packet(0 /* use the current local_user */, array('abook' => array($clone)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* @brief Generate content of connection edit page
|
/* @brief Generate content of connection edit page
|
||||||
@ -402,7 +402,7 @@ function connedit_content(&$a) {
|
|||||||
|
|
||||||
contact_remove(local_user(), $orig_record[0]['abook_id']);
|
contact_remove(local_user(), $orig_record[0]['abook_id']);
|
||||||
build_sync_packet(0 /* use the current local_user */,
|
build_sync_packet(0 /* use the current local_user */,
|
||||||
array(array('abook' => array(
|
array('abook' => array(array(
|
||||||
'abook_xchan' => $orig_record[0]['abook_xchan'],
|
'abook_xchan' => $orig_record[0]['abook_xchan'],
|
||||||
'entry_deleted' => true))
|
'entry_deleted' => true))
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user