Problem/Motivation

When configuring a condition and you choose to have a custom jQuery selector as control field inside the conditional_fields_get_selector() function there is replace for the %lang with the current language of the $dependee_form_field.
If the language attribute is not present a notice is triggered.

Proposed resolution

I suggest to have a check for the existence of the language attribute, if not replace it with the current_language id.

Comments

rbmboogie created an issue. See original summary.

bogdan.racz’s picture

Status: Active » Needs review
StatusFileSize
new751 bytes

Please review attached patch.

radubutco’s picture

StatusFileSize
new762 bytes

Re-rolled the patch in #2

opi’s picture

Status: Needs review » Reviewed & tested by the community

Works fine, no more error.

  • bogdan.racz authored f6b5c37 on 4.x
    Issue #2984548 by bogdan.racz, radubutco: Notice: Undefined index: #...
colan’s picture

Status: Reviewed & tested by the community » Fixed

Thanks!

Status: Fixed » Closed (fixed)

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