From 5b8e9ca4f3a35b82fe74e365f6c45ac4dcbac56d Mon Sep 17 00:00:00 2001 From: nathangray Date: Mon, 8 Feb 2021 09:56:49 -0700 Subject: [PATCH] * Addressbook: Fix missing distribution lists --- addressbook/inc/class.addressbook_ui.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addressbook/inc/class.addressbook_ui.inc.php b/addressbook/inc/class.addressbook_ui.inc.php index 8d02984f88..3f1693ecd9 100644 --- a/addressbook/inc/class.addressbook_ui.inc.php +++ b/addressbook/inc/class.addressbook_ui.inc.php @@ -1925,12 +1925,13 @@ class addressbook_ui extends addressbook_bo $order, $extracols, $wildcard,false, $op,[(int)$query['start'], (int)$query['num_rows']], $query['col_filter']); // do we need to read the custom fields, depends on the column is enabled and customfields + $available_distib_lists=$this->get_lists(Acl::READ); $ids = $calendar_participants = array(); if (!$id_only && $rows) { $show_custom_fields = (in_array('customfields',$columselection) || $this->config['index_load_cfs']) && $this->customfields; $show_calendar = $this->config['disable_event_column'] != 'True' && in_array('calendar_calendar',$columselection); - $show_distributionlist = in_array('distrib_lists', $columselection) || + $show_distributionlist = in_array('distribution_list', $columselection) || is_array($available_distib_lists) && count($available_distib_lists); if ($show_calendar || $show_custom_fields || $show_distributionlist) {