diff --git a/CRM/Utils/Check/Component/Schema.php b/CRM/Utils/Check/Component/Schema.php index 0fc536184fd4..3a3a059519ba 100644 --- a/CRM/Utils/Check/Component/Schema.php +++ b/CRM/Utils/Check/Component/Schema.php @@ -146,33 +146,27 @@ public function checkSmartGroupCustomFieldCriteria() { 'sequential' => 1, 'id' => $field['cfid'], ]); - $fieldName = ts(' %2 ', [ - 1 => CRM_Utils_System::url('civicrm/admin/custom/group/field/update', - "action=update&reset=1&gid={$customField['custom_group_id']}&id={$field['cfid']}", TRUE - ), - 2 => $customField['label'], - ]); + $url = CRM_Utils_System::url('civicrm/admin/custom/group/field/update', "action=update&reset=1&gid={$customField['custom_group_id']}&id={$field['cfid']}", TRUE); + $fieldName = '' . $customField['label'] . ''; } catch (CiviCRM_API3_Exception $e) { - $fieldName = ' - Deleted - '; + $fieldName = '' . ts('Deleted') . ' - ' . ts('Field ID %1', [1 => $field['cfid']]) . ' '; } } - $groupEdit = ' '; - $groupConfig = ' '; + $groupEdit = ' '; + $groupConfig = ' '; $html .= "
The following smart groups include custom fields which are disabled/deleted from the database. This may cause errors on group page. - You might need to edit their search criteria and update them to clean outdated fields from saved search OR disable them in order to fix the error.
-Group | Custom Field | -
---|
" . ts('The following smart groups include custom fields which are disabled or deleted from the database. Missing fields should automatically be ignored from the smart group criteria, but you may want to review and update their search criteria to remove the outdated fields.') . '
' + . '' . ts('Group') . ' | ' . ts('Custom Field') . ' | ' + . '
---|