mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
If accounts are hidden from addressbook, don't export them if 'Use all' is selected
This commit is contained in:
parent
2a2268f4cd
commit
06321ab94d
@ -53,7 +53,10 @@ class addressbook_export_contacts_csv implements importexport_iface_export_plugi
|
||||
$uicontacts->get_rows($query,$selection,$readonlys, true); // only return the ids
|
||||
}
|
||||
elseif ( $options['selection'] == 'all_contacts' ) {
|
||||
$selection = ExecMethod('addressbook.addressbook_bo.search',array());
|
||||
if ($GLOBALS['egw_info']['user']['preferences']['addressbook']['hide_accounts']) {
|
||||
$col_filter['account_id'] = null;
|
||||
}
|
||||
$selection = ExecMethod2('addressbook.addressbook_bo.search', array(), true, '', '','',false,'AND',false,$col_filter);
|
||||
//$uicontacts->get_rows($query,$selection,$readonlys,true);
|
||||
} else {
|
||||
$selection = explode(',',$options['selection']);
|
||||
|
Loading…
Reference in New Issue
Block a user