Problem/Motivation

If a form element has the ife_form_element theme wrapper, and there are no errors for this element yet, the element itself isn't rendered at all.
Normally this shouldn't be a problem, because IFE only adds the theme wrapper on form elements that do have an error.
But if for some reason the theme wrapper is added to the form element directly by custom code, the element isn't rendered at all.

Remaining tasks

Make a patch

Comments

TVoesenek created an issue. See original summary.

tvoesenek’s picture

Status: Active » Needs review
StatusFileSize
new938 bytes

The theme_ife_form_element() function now returns the element untouched if there are no IFE errors, instead of returning an empty string.

paulvandenburg’s picture

Title: Form element with ife_form_element is not rendered when there are no errors (yet) » Form element with ife_form_element theme wrapper is not rendered when there are no errors
Status: Needs review » Reviewed & tested by the community

Looks good, regardless of the bug seems like a good fix.
Also confirmed that it fixes the bug.

  • ram4nd committed ecb5ffc on 7.x-2.x authored by TVoesenek
    Issue #3057589 by TVoesenek: Form element with ife_form_element theme...
ram4nd’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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