Closed (fixed)
Project:
Formdazzle!
Version:
2.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Nov 2020 at 03:35 UTC
Updated:
27 Nov 2020 at 06:04 UTC
Jump to comment: Most recent
I'm seeing extra-long template suggestions with repeated suggestions in the template name, e.g. input--submit--node-article-delete-form--op--node-article-delete-form--op.html.twig.
It looks like the pre-render function is being run more than once.
This happens when Drupal goes to render a form that has a #theme hook. I've confirmed this scenario with xdebug:
#theme hook for the form, it passes the $form as a variable to the form template.This is a core bug, but we can prevent this problem inside Dazzler::preRenderForm().
The node delete form shows this problem.
Prevent pre-render function from altering the form multiple times.
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
johnalbinComment #5
johnalbin