From 9a7a69a3e5d2d011674c9de0e0eb8225f055afc7 Mon Sep 17 00:00:00 2001 From: Mathieu Lutfy Date: Wed, 11 Jul 2018 16:46:37 -0400 Subject: [PATCH] PriceField: show pre/post help if not empty, not if isset. --- CRM/Price/BAO/PriceField.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Price/BAO/PriceField.php b/CRM/Price/BAO/PriceField.php index d7dc961434..0dd12fd66c 100644 --- a/CRM/Price/BAO/PriceField.php +++ b/CRM/Price/BAO/PriceField.php @@ -413,10 +413,10 @@ class CRM_Price_BAO_PriceField extends CRM_Price_DAO_PriceField { if ($field->is_display_amounts) { $opt['label'] = !empty($opt['label']) ? $opt['label'] . ' - ' : ''; $preHelpText = $postHelpText = ''; - if (isset($opt['help_pre'])) { + if (!empty($opt['help_pre'])) { $preHelpText = '' . $opt['help_pre'] . ': '; } - if (isset($opt['help_post'])) { + if (!empty($opt['help_post'])) { $postHelpText = ': ' . $opt['help_post'] . ''; } if (isset($taxAmount) && $invoicing) { -- 2.25.1