Hello!

Here's a small bug that I was able to find. All fields can have "help text" which is then in the majority of widgets is rendered as form element description, i.e. $element['#description'] = 'here';.

The entity reference drag-n-drop widget, however, does not include the field help text in any manner.

CommentFileSizeAuthor
#3 2863859-field-description-2.patch637 bytesbucefal91

Comments

bucefal91 created an issue. See original summary.

bucefal91’s picture

Status: Active » Needs review

Here's a patch that does the trick. To keep the rendered output uniform with the rest of theme (whatever theme is employed), I render it as '#type' => 'item' element, so this description actually gets processed by the code that processes all form element descriptions.

bucefal91’s picture

StatusFileSize
new637 bytes

Sorry, here's the patch itself :)

sergei_brill’s picture

Status: Needs review » Reviewed & tested by the community
sergei_brill’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.