mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 08:34:42 +01:00
Infolog: Fix "1 more..." incorrectly displayed on list link string
This commit is contained in:
parent
1c06e6864d
commit
685fbf7cbc
@ -240,7 +240,7 @@ class infolog_ui
|
||||
}
|
||||
if(($show_links != 'none' && $show_links != 'no_describtion' ||
|
||||
$this->prefs['show_times'] || isset($GLOBALS['egw_info']['user']['apps']['timesheet'])) &&
|
||||
(isset($info['links']) || ($info['links'] = Link::get_links('infolog', $info['info_id'], $only_app, 'link_lastmod DESC', true, true, 20))))
|
||||
(isset($info['links']) || ($info['links'] = Link::get_links('infolog', $info['info_id'], $only_app, 'link_lastmod DESC', true, true, $GLOBALS['egw_info']['user']['preferences']['common']['maxmatchs']))))
|
||||
{
|
||||
$info['filelinks']['total'] = $show_links == 'attach' ? count($info['links']) : Link::$row_count;
|
||||
$timesheets = array();
|
||||
@ -255,6 +255,7 @@ class infolog_ui
|
||||
|
||||
if($link['deleted'])
|
||||
{
|
||||
$info['filelinks']['total']--;
|
||||
continue;
|
||||
} // skip deleted links, but incl. them in row_mod!
|
||||
|
||||
@ -265,6 +266,10 @@ class infolog_ui
|
||||
{
|
||||
$info['filelinks'][] = $link;
|
||||
}
|
||||
else
|
||||
{
|
||||
$info['filelinks']['total']--;
|
||||
}
|
||||
if (!$info['pm_id'] && $link['app'] == 'projectmanager')
|
||||
{
|
||||
$info['pm_id'] = $link['id'];
|
||||
|
Loading…
Reference in New Issue
Block a user