mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-05 05:29:13 +01:00
Fix conditions using custom fields - needed extra query key
This commit is contained in:
parent
075db1ac82
commit
abe612461c
@ -165,7 +165,7 @@ class infolog_import_infologs_csv implements importexport_iface_import_plugin {
|
|||||||
$lookups['info_status'] = $this->boinfolog->status[$record['info_type']];
|
$lookups['info_status'] = $this->boinfolog->status[$record['info_type']];
|
||||||
}
|
}
|
||||||
|
|
||||||
importexport_import_csv::convert($record, infolog_egw_record::$types, 'infolog', $lookups);
|
importexport_import_csv::convert($record, infolog_egw_record::$types, 'infolog', $lookups, $_definition->plugin_options['convert']);
|
||||||
|
|
||||||
// Set owner, unless it's supposed to come from CSV file
|
// Set owner, unless it's supposed to come from CSV file
|
||||||
if($_definition->plugin_options['owner_from_csv']) {
|
if($_definition->plugin_options['owner_from_csv']) {
|
||||||
@ -200,6 +200,8 @@ class infolog_import_infologs_csv implements importexport_iface_import_plugin {
|
|||||||
case 'exists' :
|
case 'exists' :
|
||||||
if($record[$condition['string']]) {
|
if($record[$condition['string']]) {
|
||||||
$query['col_filter'] = array( $condition['string'] => $record[$condition['string']],);
|
$query['col_filter'] = array( $condition['string'] => $record[$condition['string']],);
|
||||||
|
// Needed to query custom fields
|
||||||
|
if($condition['string'][0] == '#') $query['custom_fields'] = true;
|
||||||
$results = $this->boinfolog->search($query);
|
$results = $this->boinfolog->search($query);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user