Fix missing custom field values on first visit to calender list

This commit is contained in:
Nathan Gray 2013-08-03 15:06:21 +00:00
parent 8097119b6c
commit 42c269fc30

View File

@ -262,7 +262,8 @@ class calendar_uilist extends calendar_ui
if (!$params['csv_export']) egw_session::appsession('calendar_list','calendar',$params);
// do we need to query custom fields and which
$select_cols = explode(',',$params['selectcols']);
// Check stored preference if selectcols isn't available (ie: first call)
$select_cols = explode(',',$params['selectcols'] ? $params['selectcols'] : $GLOBALS['egw_info']['user']['preferences']['calendar']['nextmatch-calendar.list.rows']);
if (in_array('cfs',$select_cols))
{
$cfs = array();