If you render a example composite not as a table, click on Add/Remove button raises an Ajax Error

AjaxError: 
An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /form/webform-example-composite?ajax_form=1
StatusText: OK
ResponseText: 
Fatal error:  Call to undefined function _template_preprocess_webform_composite() in /home/r2zi0/www/modules/webform/modules/webform_example_composite/webform_example_composite.module on line 32  js_g6BvtjuwxIS_Nn7ebv9__1bD4YDu4f_1XpB2O6ZWzSI.js:2335:32

tested on a clean installation on simplytest.me.

Non-example composites work fine if rendered not as a able.

CommentFileSizeAuthor
#3 example_composite_ajax-2914726-3.patch597 bytesjrockowitz

Comments

juves created an issue. See original summary.

juves’s picture

Version: 8.x-5.0-beta19 » 8.x-5.x-dev
jrockowitz’s picture

Status: Active » Fixed
StatusFileSize
new597 bytes

@juves Congratulations on earning your first commit credit

I wanted the say "Thanks" for helping out with the Webform module. Learn more about...

jrockowitz’s picture

Status: Fixed » Needs review
jrockowitz’s picture

Status: Needs review » Fixed

  • jrockowitz committed 89f7275 on 8.x-5.x
    Issue #2914726 by jrockowitz, juves: Example composite AJAX Error if...

Status: Fixed » Closed (fixed)

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