fix #214 - Fix issue with my tasks dashlet causing display issues on the homepage

Check that there is a dynamic module set before trying to generate a link to it on the dashelt
This commit is contained in:
j.buchanan 2023-07-28 16:54:15 +01:00 committed by Jack Anderson
parent 6a514b8772
commit fdfab039d9

View file

@ -107,7 +107,7 @@
<td scope='row' align='{$params.align|default:'left'}' valign="top" {if ($params.type == 'teamset')}class="nowrap"{/if}>
{if $col == 'NAME' || $params.bold}<b>{/if}
{if $params.link && !$params.customCode}
{capture assign='recordUrl'}index.php?action={$params.action|default:'DetailView'}&module={if $params.dynamic_module}{$rowData[$params.dynamic_module]}{else}{$params.module|default:$pageData.bean.moduleDir}{/if}&record={$rowData[$params.id]|default:$rowData.ID}&offset={$pageData.offsets.current+$smarty.foreach.rowIteration.iteration}&stamp={$pageData.stamp}{/capture}
{capture assign='recordUrl'}index.php?action={$params.action|default:'DetailView'}&module={if $params.dynamic_module && $rowData[$params.dynamic_module]}{$rowData[$params.dynamic_module]}{else}{$params.module|default:$pageData.bean.moduleDir}{/if}&record={$rowData[$params.id]|default:$rowData.ID}&offset={$pageData.offsets.current+$smarty.foreach.rowIteration.iteration}&stamp={$pageData.stamp}{/capture}
<{$pageData.tag.$id[$params.ACLTag]|default:$pageData.tag.$id.MAIN} href='{convert_link link=$recordUrl}'>
{/if}
{if $params.customCode}