mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
* InfoLog: subentries are now shown only in hierarchical view and updates to them also update modification time of parent
This commit is contained in:
parent
7948b17745
commit
bdc8b5bd01
@ -686,7 +686,7 @@ class infolog_so
|
||||
'event' => 'calendar'
|
||||
);
|
||||
// query children independent of action
|
||||
if (empty($query['col_filter']['info_id_parent']))
|
||||
if ((string)$query['col_filter']['info_id_parent'] === '')
|
||||
{
|
||||
$action = isset($action2app[$query['action']]) ? $action2app[$query['action']] : $query['action'];
|
||||
if ($action)
|
||||
@ -748,7 +748,7 @@ class infolog_so
|
||||
continue;
|
||||
}
|
||||
if ($col[0] != '#' && substr($col,0,5) != 'info_' && isset($table_def['fd']['info_'.$col])) $col = 'info_'.$col;
|
||||
if (!empty($data) && preg_match('/^[a-z_0-9]+$/i',$col))
|
||||
if ((string)$data !== '' && preg_match('/^[a-z_0-9]+$/i',$col))
|
||||
{
|
||||
switch ($col)
|
||||
{
|
||||
|
@ -281,7 +281,7 @@ class infolog_ui
|
||||
if (!$query['csv_export'])
|
||||
{
|
||||
unset($query['no_actions']);
|
||||
$parent_id = $query['col_filter']['parent_id'];
|
||||
$parent_id = (int)$query['col_filter']['parent_id'];
|
||||
unset($query['col_filter']['parent_id']);
|
||||
if(!$query['action'])
|
||||
{
|
||||
@ -295,7 +295,7 @@ class infolog_ui
|
||||
$query['action_var'] = 'multi_action'; // as 'action' is already used in infolog
|
||||
}
|
||||
$orginal_colfilter = $query['col_filter'];
|
||||
if (isset($parent_id)) $query['col_filter']['info_id_parent'] = (int)$parent_id;
|
||||
if (isset($parent_id)) $query['col_filter']['info_id_parent'] = (string)$parent_id;
|
||||
|
||||
//echo "<p>infolog_ui.get_rows(start=$query[start],search='$query[search]',filter='$query[filter]',cat_id=$query[cat_id],action='$query[action]/$query[action_id]',col_filter=".print_r($query['col_filter'],True).",sort=$query[sort],order=$query[order])</p>\n";
|
||||
if (!isset($query['start'])) $query['start'] = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user