From 46382fa72d7ecb88e3d0d9a9cfa9e3d28240e79a Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 8 Jul 2021 09:25:54 +1200 Subject: [PATCH] Enotice fix on extensions page I dug around and I think upgradable is an obsolete row value - I couldn't find where it was set - including when I marked an extension as an older version in info.xml --- templates/CRM/Admin/Page/ExtensionDetails.tpl | 6 +++--- templates/CRM/Admin/Page/Extensions/Main.tpl | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/CRM/Admin/Page/ExtensionDetails.tpl b/templates/CRM/Admin/Page/ExtensionDetails.tpl index a769842de6..8ca42764d1 100644 --- a/templates/CRM/Admin/Page/ExtensionDetails.tpl +++ b/templates/CRM/Admin/Page/ExtensionDetails.tpl @@ -7,9 +7,9 @@ {foreach from=$extension.authors item=author} {capture assign=authorDetails} - {if $author.role}{$author.role|escape};{/if} - {if $author.email}{$author.email|escape};{/if} - {if $author.homepage}{$author.homepage|escape};{/if} + {if !empty($author.role)}{$author.role|escape};{/if} + {if !empty($author.email)}{$author.email|escape};{/if} + {if !empty($author.homepage)}{$author.homepage|escape};{/if} {/capture} {$author.name|escape} {if $authorDetails}({$authorDetails|trim:'; '}){/if}
{/foreach} diff --git a/templates/CRM/Admin/Page/Extensions/Main.tpl b/templates/CRM/Admin/Page/Extensions/Main.tpl index 3afbdb1d72..9425b17600 100644 --- a/templates/CRM/Admin/Page/Extensions/Main.tpl +++ b/templates/CRM/Admin/Page/Extensions/Main.tpl @@ -19,14 +19,14 @@ Depends: CRM/common/enableDisableApi.tpl and CRM/common/jsortable.tpl {foreach from=$localExtensionRows key=extKey item=row} - +  {$row.label|escape}
{$row.description|escape} - {if $extAddNewEnabled && $remoteExtensionRows[$extKey] && $remoteExtensionRows[$extKey].upgradelink} + {if $extAddNewEnabled && !empty($remoteExtensionRows[$extKey]) && $remoteExtensionRows[$extKey].upgradelink}
{$remoteExtensionRows[$extKey].upgradelink}
{/if} - {$row.statusLabel} {if $row.upgradable}
({ts}Outdated{/ts}){/if} + {$row.statusLabel} {$row.version|escape} {if ($row.develStage and $row.develStage != 'stable') or preg_match(";(alpha|beta|dev);", $row.version)} {icon icon="fa-flask crm-extensions-stage"}{ts}This is a pre-release version. For more details, see the expanded description.{/ts}{/icon} -- 2.25.1