Skip to content

Commit

Permalink
System: automatically hyperlink any urls included in Custom Field des…
Browse files Browse the repository at this point in the history
…criptions
  • Loading branch information
SKuipers committed Dec 8, 2023
1 parent 88c6d1c commit f996a0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ v27.0.00
Changes With Important Notices

Tweaks & Additions
System: automatically hyperlink any urls included in Custom Field descriptions

Bug Fixes

Expand Down
2 changes: 1 addition & 1 deletion src/Forms/CustomFieldHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ public function addCustomFieldsToForm(&$form, $context, $params = [], $fields =
$row = $row->addColumn();
}

$row->addLabel($name, $field['name'])->description($field['description']);
$row->addLabel($name, $field['name'])->description(Format::hyperlinkAll($field['description']));
$row->addCustomField($name, $field)->setValue($fieldValue)->readonly($params['readonly'] ?? false);
}
}
Expand Down

0 comments on commit f996a0d

Please sign in to comment.