Do not run read_calendar if there's no columnselection at all

This commit is contained in:
Hadi Nategh 2018-11-15 17:44:42 +01:00
parent 5745919c5a
commit b88f5cb446

View File

@ -1803,7 +1803,9 @@ window.egw_LAB.wait(function() {
}
$customfields = $this->read_customfields($ids,$selected_cfs);
}
if ($show_calendar && !empty($ids)) $calendar = $this->read_calendar($calendar_participants);
// TODO: we need to find out where the csv_export query has been used and try to clean up
// this columnselection condition statements.
if ($columselection && $show_calendar && !empty($ids)) $calendar = $this->read_calendar($calendar_participants);
// distributionlist memership for the entrys
//_debug_array($this->get_lists(Acl::EDIT));
if ($show_distributionlist && $available_distib_lists)