Fix missing custom field values on first visit to calender list

This commit is contained in:
Nathan Gray 2013-08-05 15:08:02 +00:00
parent c20bb4df6b
commit fea1126283

View File

@ -262,7 +262,8 @@ class calendar_uilist extends calendar_ui
if (!$params['csv_export']) egw_session::appsession('calendar_list','calendar',$params); if (!$params['csv_export']) egw_session::appsession('calendar_list','calendar',$params);
// do we need to query custom fields and which // 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)) if (in_array('cfs',$select_cols))
{ {
$cfs = array(); $cfs = array();