mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 17:04:14 +01:00
Set default columns
This commit is contained in:
parent
8c125c8dfa
commit
d51c83402d
@ -40,8 +40,8 @@ class addressbook_favorite_portlet extends home_favorite_portlet
|
||||
'get_rows' => 'addressbook_favorite_portlet::get_rows',
|
||||
// Use a different template so it can be accessed from client side
|
||||
'template' => 'addressbook.index.rows',
|
||||
'default_cols' => 'type,n_fileas_n_given_n_family_n_family_n_given_org_name_n_family_n_given_n_fileas,'.
|
||||
'business_adr_one_countrycode_adr_one_postalcode,tel_work_tel_cell_tel_home,url_email_email_home',
|
||||
'default_cols' => 'n_fileas_n_given_n_family_n_family_n_given_org_name_n_family_n_given_n_fileas,'.
|
||||
'tel_work_tel_cell_tel_home,url_email_email_home',
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -45,7 +45,7 @@ class calendar_favorite_portlet extends home_favorite_portlet
|
||||
// Use a different template so it can be accessed from client side
|
||||
'template' => 'calendar.list.rows',
|
||||
// Default to fewer columns
|
||||
'default_cols' => 'cal_start_cal_end,cal_title,cal_owner_cal_location'
|
||||
'default_cols' => 'cal_start_cal_end,cal_title'
|
||||
);
|
||||
}
|
||||
$need_reload = true;
|
||||
@ -143,6 +143,7 @@ class calendar_favorite_portlet extends home_favorite_portlet
|
||||
$total = $ui->get_rows($query, $rows, $readonlys);
|
||||
$ui->owner = $old_owner;
|
||||
unset($GLOBALS['egw_info']['flags']['app_header']);
|
||||
unset($query['selectcols']);
|
||||
return $total;
|
||||
}
|
||||
|
||||
|
@ -74,8 +74,8 @@ class home_favorite_portlet extends home_portlet
|
||||
if(!$context['favorite'])
|
||||
{
|
||||
// Set initial size to 6x3, default is way too small
|
||||
$context['width'] = 6;
|
||||
$context['height'] = 3;
|
||||
$context['width'] = max($context['width'], 6);
|
||||
$context['height'] = max($context['height'], 3);
|
||||
|
||||
$need_reload = true;
|
||||
}
|
||||
@ -93,12 +93,12 @@ class home_favorite_portlet extends home_portlet
|
||||
if($this->favorite)
|
||||
{
|
||||
$this->nm_settings['favorite'] = $this->context['favorite'];
|
||||
$this->nm_settings['columnselection_pref'] = "nextmatch-home.{$this->context['id']}";
|
||||
if(is_array($this->favorite['state']))
|
||||
{
|
||||
$this->nm_settings += $this->favorite['state'];
|
||||
}
|
||||
}
|
||||
$this->nm_settings['columnselection_pref'] = "nextmatch-home.{$this->context['id']}";
|
||||
}
|
||||
public function exec($id = null, etemplate_new &$etemplate = null)
|
||||
{
|
||||
|
@ -40,6 +40,7 @@ class infolog_favorite_portlet extends home_favorite_portlet
|
||||
'get_rows' => 'infolog_favorite_portlet::get_rows',
|
||||
// Use a different template so it can be accessed from client side
|
||||
'template' => 'infolog.home',
|
||||
'default_cols' => 'info_type_info_status_info_percent,linked_info_priority_info_subject_info_id_info_des_info_datemodified,info_startdate_info_enddate_info_datecompleted',
|
||||
// Don't overwrite infolog
|
||||
'session_for' => 'home',
|
||||
'no_filter2' => true,
|
||||
|
@ -38,7 +38,7 @@ class resources_favorite_portlet extends home_favorite_portlet
|
||||
// Don't store in session, there's no point
|
||||
'store_state' => false,
|
||||
// Use a reduced column set for home, user can change if needed
|
||||
'default_cols' => 'image,name_short_description',
|
||||
'default_cols' => 'image,name_short_description,useable_quantity',
|
||||
'row_id' => 'res_id',
|
||||
'row_modified' => 'ts_modified',
|
||||
|
||||
|
@ -36,7 +36,7 @@ class timesheet_favorite_portlet extends home_favorite_portlet
|
||||
// Use a different template so it can be accessed from client side
|
||||
'template' => 'timesheet.index.rows',
|
||||
// Use a reduced column set for home, user can change if needed
|
||||
'default_cols' => 'ts_id,ts_start,ts_project_pm_id_linked_ts_title,ts_duration_duration',
|
||||
'default_cols' => 'ts_start,ts_project_pm_id_linked_ts_title,ts_duration_duration',
|
||||
'row_id' => 'ts_id',
|
||||
'row_modified' => 'ts_modified',
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user