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().
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | geocoder_ajax_prepopulate-3161198-2.patch | 1.65 KB | prudloff |
Comments
Comment #2
prudloff commentedThe attached patch checks if the form uses a submit function from the ProfileFormWidget class.
I tried to keep compatibility with older profile versions.
Comment #4
gaëlg