When I go in and edit the source of a form and click save I get some errors

Notice: Undefined index: #webform_key in _webform_entity_element_validate_rendering_error_handler() (line 924 of modules/contrib/webform/webform.module).
_webform_entity_element_validate_rendering_error_handler(8, 'Undefined index: #webform_key', '/Users/gran/projects/uceap-website/web/modules/contrib/webform/src/Plugin/WebformElement/WebformManagedFileBase.php', 825, Array) (Line: 825)

Comments

graper created an issue. See original summary.

jrockowitz’s picture

Status: Active » Postponed (maintainer needs more info)

Please provide an example of the YAML source which throwing this error. Please make sure to also use the latest dev release when replicating this issue.

graper’s picture

StatusFileSize
new6.52 KB

Attached YAML

jrockowitz’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new4.79 KB

The issue is the file preview is not work with custom composite elements.

The attached webform replicates this issue.

jrockowitz’s picture

StatusFileSize
new877 bytes

The file preview is not supported within a custom composite element. The attached patch prevents fatal error.

  • jrockowitz authored ade4c20 on 8.x-5.x
    Issue #3152096 by jrockowitz, graper: Error when saving YAML source
    
jrockowitz’s picture

Status: Needs review » Fixed

  • jrockowitz authored ade4c20 on 6.x
    Issue #3152096 by jrockowitz, graper: Error when saving YAML source
    

Status: Fixed » Closed (fixed)

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