Problem/Motivation

The elements #default_value is assumed mandatory.

Steps to reproduce

Create a form friendly_autocomplete form element with no #default_value assigned. It will thow a notice like

Undefined index: #default_value in Drupal\friendly_autocomplete\Element\FriendlyAutocomplete::valueCallback() (line 139 of modules/custom/friendly_autocomplete/src/Element/FriendlyAutocomplete.php).

Proposed resolution

Make it optional like for example in /core/lib/Drupal/Core/Render/Element/Select.php line 174.

CommentFileSizeAuthor
#2 3226094.patch698 bytesuniquename
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

uniquename created an issue. See original summary.

uniquename’s picture

StatusFileSize
new698 bytes

alexdmccabe made their first commit to this issue’s fork.

alexdmccabe’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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