Skip to content

Commit

Permalink
GetDKAN#4132: Provide text_format render element - fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-korn committed Feb 22, 2024
1 parent fc679fa commit cf782b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/json_form_widget/src/WidgetRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ public function handleUploadOrLinkElement($spec, array $element) {
*/
public function handleTextareaElement($spec, array $element) {
$element['#type'] = 'textarea';
if ($spec->text_format) {
if (isset($spec->text_format)) {
$element['#type'] = 'text_format';
$element['#format'] = $spec->text_format;
$element['#allowed_formats'] = [
Expand Down

0 comments on commit cf782b7

Please sign in to comment.