mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
Add owner as exception to contact_ prefixing, it's used as a flag in searching.
Fixes ambiguous column error when filtering by owner and custom field.
This commit is contained in:
parent
061b4b9954
commit
31ad005a0b
@ -100,8 +100,8 @@ class addressbook_export_contacts_csv implements importexport_iface_export_plugi
|
||||
}
|
||||
continue;
|
||||
}
|
||||
// Custom fields & listed are not filtered with contact_ prefix
|
||||
if(strpos($field, '#') !== 0 && !in_array($field, array('tid')))
|
||||
// Custom fields & listed exceptions are not filtered with contact_ prefix
|
||||
if(strpos($field, '#') !== 0 && !in_array($field, array('tid','owner')))
|
||||
{
|
||||
$field = 'contact_'.$field;
|
||||
}
|
||||
@ -119,6 +119,10 @@ class addressbook_export_contacts_csv implements importexport_iface_export_plugi
|
||||
{
|
||||
$selection = explode(',',$options['selection']);
|
||||
}
|
||||
if(!is_array($selection))
|
||||
{
|
||||
$selection = array();
|
||||
}
|
||||
$GLOBALS['egw_info']['flags']['currentapp'] = $old_app;
|
||||
|
||||
if(bo_merge::hasExportLimit($export_limit) && !$limit_exception) {
|
||||
|
Loading…
Reference in New Issue
Block a user