Problem/Motivation
When running a custom Functional Test which uses this module.
Exception: Warning: Undefined array key "#other_option" Drupal\select_or_other\Element\ElementBase::addSelectField()() (Line: 141) is thrown
This is because $element['#other_option'] could be undefined.
Steps to reproduce
Proposed resolution
Use nullsafety check $element['#other_option'] ?? ''
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3533677-2.patch | 583 bytes | skyredwang |
Issue fork select_or_other-3533677
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
Comment #2
skyredwangComment #6
ivnish