Skip to content
Snippets Groups Projects
Commit c38cc9bb authored by Björn Endres's avatar Björn Endres :sailboat:
Browse files

trim field title to avoid whitespace strings

parent 50ad4b78
Branches
Tags
No related merge requests found
......@@ -41,9 +41,9 @@ class CRM_CivirulesConditions_Form_FieldValueComparison extends CRM_CivirulesCon
foreach ($fields as $field) {
$fieldKey = $key . $field['name'];
if (isset($field['title'])) {
$label = $field['title'];
$label = trim($field['title']);
} else {
$label = $field['name'];
$label = "";
}
if (empty($label)) {
$label = $field['name'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment