mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 12:21:26 +02: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
|
$uicontacts->get_rows($query,$selection,$readonlys, true); // only return the ids
|
||||||
}
|
}
|
||||||
elseif ( $options['selection'] == 'all_contacts' ) {
|
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);
|
//$uicontacts->get_rows($query,$selection,$readonlys,true);
|
||||||
} else {
|
} else {
|
||||||
$selection = explode(',',$options['selection']);
|
$selection = explode(',',$options['selection']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user