Problem/Motivation

geocoder_ajax_prepopulate checks if the form is an embedded profile form here: https://git.drupalcode.org/project/geocoder_ajax_prepopulate/-/blob/bb69...

However, on recent profile versions, the profile_form_user_register_form_submit function does not seem to exist in submit anymore.

Steps to reproduce

Use geocoder_ajax_prepopulate on a profile form with profile 1.1.0.

Proposed resolution

Use another way of checking if this is a Profile form. (The submit function seems to now be ProfileFormWidget::saveProfiles().

Comments

prudloff created an issue. See original summary.

prudloff’s picture

Status: Active » Needs review
StatusFileSize
new1.65 KB

The attached patch checks if the form uses a submit function from the ProfileFormWidget class.
I tried to keep compatibility with older profile versions.

  • GaëlG committed f6f6bda on 8.x-2.x authored by prudloff
    Issue #3161198 by prudloff, GaëlG: Broken compatibility with profile...
gaëlg’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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