From 2a087bdaadf298932952e87002a2255195b48bd4 Mon Sep 17 00:00:00 2001 From: Andrew Hunt Date: Tue, 12 May 2020 09:58:48 -0400 Subject: [PATCH] Update CRM/Core/Form/Renderer.php Adopting @colemanw's suggestion since it's more of a concern that the label be blank than undefined. Co-authored-by: colemanw --- CRM/Core/Form/Renderer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/Form/Renderer.php b/CRM/Core/Form/Renderer.php index 8090dc14a9..f0ce13ae56 100644 --- a/CRM/Core/Form/Renderer.php +++ b/CRM/Core/Form/Renderer.php @@ -370,7 +370,7 @@ class CRM_Core_Form_Renderer extends HTML_QuickForm_Renderer_ArraySmarty { $path = $field->getAttribute('data-option-edit-path'); // NOTE: If we ever needed to support arguments in this link other than reset=1 we could split $path here if it contains a ? $url = CRM_Utils_System::url($path, 'reset=1'); - $icon = CRM_Core_Page::crmIcon('fa-wrench', ts('Edit %1 Options', [1 => $field->getLabel() ?? ts('Field')])); + $icon = CRM_Core_Page::crmIcon('fa-wrench', ts('Edit %1 Options', [1 => $field->getLabel() ?: ts('Field')])); $el['html'] .= <<$icon HEREDOC; -- 2.25.1