Infolog: Fix "1 more..." incorrectly displayed on list link string

This commit is contained in:
nathan 2024-10-07 15:24:41 -06:00
parent 1c06e6864d
commit 685fbf7cbc

View File

@ -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'];