From 19f540fa9e40c8becc669aacef66a1ae72631cea Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Wed, 17 Oct 2018 11:13:40 -0400 Subject: [PATCH] DB widget: when list item has a reftype, get its name in lowercase, not the whole array --- views/admin/newDashboard/components/list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/admin/newDashboard/components/list.html b/views/admin/newDashboard/components/list.html index 24b470e5..804769d9 100644 --- a/views/admin/newDashboard/components/list.html +++ b/views/admin/newDashboard/components/list.html @@ -14,7 +14,7 @@ {/foreach} {* Not all tables have a refType but all links require it, so make sure it is set *} - {if !$item.refType}{$item.refType = $component['defaultRefType']}{/if} + {if $item.refType}{$item.refType = $item.refType.name|strtolower}{else}{$item.refType = $component['defaultRefType']}{/if}
  • {if isset($component.url)} -- 2.17.1