DB widget: when list item has a reftype, get its name in lowercase, not the whole...
authorLaury GvR <laury@gaslightmedia.com>
Wed, 17 Oct 2018 15:13:40 +0000 (11:13 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Wed, 17 Oct 2018 15:13:40 +0000 (11:13 -0400)
views/admin/newDashboard/components/list.html

index 24b470e..804769d 100644 (file)
@@ -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}
 
         <li class="collection-item">
             {if isset($component.url)}