Problem/Motivation

Webform CodeMirror Type Element returns the following error on submit:
"Undefined array key "#default_value" in Drupal\webform\Element\WebformCodeMirror::validateWebformCodeMirror()"

Steps to reproduce

Add CodeMirror type element to a webform, fill the CodeMirror element and submit the form.

Proposed resolution

Correct error located at (line 145 of /modules/contrib/webform/src/Element/WebformCodeMirror.php)

Issue fork webform-3459160

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

Sophron created an issue. See original summary.

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

chaitanyadessai’s picture

Status: Active » Needs review

Please review MR.

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

abhishek_gupta1’s picture

@Sophron, I have fixed the issue and created MR. please review it once.

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

jrockowitz’s picture

Status: Needs review » Fixed

jrockowitz’s picture

Status: Needs review » Fixed

liam morland’s picture

Version: 6.2.3 » 6.2.x-dev

Status: Fixed » Closed (fixed)

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