forked from extern/egroupware
fix warning if $pm_config["duration_units"] is no array
This commit is contained in:
parent
c944df738d
commit
ed2e3e3bc2
@ -107,13 +107,13 @@ class infolog_hooks
|
||||
{
|
||||
$file = Array(
|
||||
'Site configuration' => egw::link('/index.php',array(
|
||||
'menuaction' => 'infolog.infolog_ui.admin' )),
|
||||
'menuaction' => 'infolog.infolog_ui.admin' ), 'admin'),
|
||||
'Global Categories' => egw::link('/index.php',array(
|
||||
'menuaction' => 'admin.admin_categories.index',
|
||||
'appname' => $appname,
|
||||
'global_cats'=> True)),
|
||||
'Custom fields, typ and status' => egw::link('/index.php',array(
|
||||
'menuaction' => 'infolog.infolog_customfields.edit')),
|
||||
'menuaction' => 'infolog.infolog_customfields.edit'), 'admin'),
|
||||
);
|
||||
if ($location == 'admin')
|
||||
{
|
||||
|
@ -110,7 +110,8 @@ class infolog_ui
|
||||
if ($GLOBALS['egw_info']['apps']['projectmanager'])
|
||||
{
|
||||
$pm_config = config::read('projectmanager');
|
||||
$this->duration_format = str_replace(',','',implode('',$pm_config['duration_units']));
|
||||
$this->duration_format = str_replace(',','',implode('', (array)$pm_config['duration_units']));
|
||||
error_log(__METHOD__."() ".__LINE__." duration_format=$this->duration_format, duration_unit=".array2string($pm_config['duration_units']));
|
||||
$this->hours_per_workday = $pm_config['hours_per_workday'];
|
||||
unset($pm_config);
|
||||
}
|
||||
@ -388,12 +389,12 @@ class infolog_ui
|
||||
$query['action_id'] = array_shift($query['action_id']); // display single parent as app_header
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$parent_first = count($parents) == 1;
|
||||
$parent_index = 0;
|
||||
// et2 nextmatch listens to total, and only displays that many rows, so add parent in or we'll lose the last row
|
||||
if($parent_first || $query['action'] = 'sp' && is_array($query['action_id'])) $query['total']++;
|
||||
|
||||
|
||||
// Check to see if we need to remove description
|
||||
foreach($infos as $id => $info)
|
||||
{
|
||||
@ -829,7 +830,7 @@ class infolog_ui
|
||||
|
||||
// Allow saving parent ID into favorites
|
||||
$values['nm']['favorites'] = array('action','action_id');
|
||||
|
||||
|
||||
// Allow add actions even when there's no rows
|
||||
$values['nm']['placeholder_actions'] = array('new');
|
||||
|
||||
|
@ -1,25 +0,0 @@
|
||||
/* $Id$ */
|
||||
.infolog_headertext { color: black; font-size: 120%; }
|
||||
.infolog_lpadding5 { padding-left: 5px; }
|
||||
.low,.low_done,.normal,.normal_done,.high,.high_done,.urgent,.urgent_done { font-weight: bold; }
|
||||
.low,.low_done { color:#606060; }
|
||||
.normal,.normal_done { color:black }
|
||||
.high { color:#cc0000; }
|
||||
.high_done { color:#800000; }
|
||||
.urgent { color:#ff00ff; }
|
||||
.urgent_done { color:#800080; }
|
||||
.infolog_overdue { color:#cc0000; font-weight:bold; }
|
||||
.private { font-style:italic; }
|
||||
.infolog_planned { font-style:italic; }
|
||||
table.infolog_fullWidth { width: 100%; }
|
||||
td.infolog_infoId:before { content:"#" }
|
||||
.infolog_fixedHeight { height: 12px; }
|
||||
.noWrap { white-space: nowrap; }
|
||||
.infolog_user_filter select { width: 100px; }
|
||||
.inputFullWidth input { width: 100%; }
|
||||
.infolog_image16 img { height: 16px; }
|
||||
tr.infolog_rowHasParent > td:first-child {
|
||||
background-image: url(../../../phpgwapi/templates/default/images/egw_action/arrow_up.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: 6px -2px;
|
||||
}
|
Loading…
Reference in New Issue
Block a user