From 9b5c1d20ba7fb9d19550043857e8f766037ee47c Mon Sep 17 00:00:00 2001 From: nathangray Date: Mon, 3 Aug 2020 09:41:02 -0600 Subject: [PATCH] * Infolog: Fix exporting search results failed if a contact filter was used --- infolog/inc/class.infolog_export_csv.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/infolog/inc/class.infolog_export_csv.inc.php b/infolog/inc/class.infolog_export_csv.inc.php index ebed04e313..91b8f12111 100644 --- a/infolog/inc/class.infolog_export_csv.inc.php +++ b/infolog/inc/class.infolog_export_csv.inc.php @@ -90,12 +90,13 @@ class infolog_export_csv implements importexport_iface_export_plugin } $query['num_rows'] = 500; $query['start'] = 0; - if ($query['col_filter']['info_contact']) + if ($query['col_filter']['info_contact'] || $query['col_filter']['linked']) { $ui = new infolog_ui(); - $link_filters['linked'] = $query['col_filter']['info_contact']; + $link_filters['linked'] = $query['col_filter']['info_contact'] ?: $query['col_filter']['linked']; $links['linked'] = array(); unset($query['col_filter']['info_contact']); + unset($query['col_filter']['linked']); $rows = array(); $linked = $ui->link_filters($links, $link_filters, $query, $rows); }