From: Laury GvR Date: Wed, 17 Oct 2018 15:13:40 +0000 (-0400) Subject: DB widget: when list item has a reftype, get its name in lowercase, not the whole... X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=19f540fa9e40c8becc669aacef66a1ae72631cea;p=WP-Plugins%2Fglm-member-db.git DB widget: when list item has a reftype, get its name in lowercase, not the whole array --- 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)}