mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-02 20:19:27 +01:00
infolog_ui changes default_cols in get_rows, so we change it back.
This commit is contained in:
parent
06abca167d
commit
9bd29925cd
@ -17,6 +17,9 @@
|
|||||||
class infolog_favorite_portlet extends home_favorite_portlet
|
class infolog_favorite_portlet extends home_favorite_portlet
|
||||||
{
|
{
|
||||||
|
|
||||||
|
// Infolog app helpfully overwrites what we set in constructor
|
||||||
|
protected static $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';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Construct the portlet
|
* Construct the portlet
|
||||||
*
|
*
|
||||||
@ -40,7 +43,7 @@ class infolog_favorite_portlet extends home_favorite_portlet
|
|||||||
'get_rows' => 'infolog_favorite_portlet::get_rows',
|
'get_rows' => 'infolog_favorite_portlet::get_rows',
|
||||||
// Use a different template so it can be accessed from client side
|
// Use a different template so it can be accessed from client side
|
||||||
'template' => 'infolog.home',
|
'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',
|
'default_cols' => self::$default_cols,
|
||||||
// Don't overwrite infolog
|
// Don't overwrite infolog
|
||||||
'session_for' => 'home',
|
'session_for' => 'home',
|
||||||
'no_filter2' => true,
|
'no_filter2' => true,
|
||||||
@ -62,6 +65,8 @@ class infolog_favorite_portlet extends home_favorite_portlet
|
|||||||
{
|
{
|
||||||
$ui = new infolog_ui();
|
$ui = new infolog_ui();
|
||||||
$total = $ui->get_rows($query, $rows, $readonlys);
|
$total = $ui->get_rows($query, $rows, $readonlys);
|
||||||
|
// infolog_ui overwrites what we set in constructor
|
||||||
|
$query['default_cols'] = self::$default_cols;
|
||||||
unset($GLOBALS['egw_info']['flags']['app_header']);
|
unset($GLOBALS['egw_info']['flags']['app_header']);
|
||||||
return $total;
|
return $total;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user