Needs review
Project:
Account Profile
Version:
7.x-2.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Dec 2015 at 18:20 UTC
Updated:
26 Jun 2018 at 12:06 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
loparev commentedComment #3
loparev commentedComment #4
spleshkaHave you seen this issue #1209640: The main profile is loaded twice resulting in pre_render getting execute twice (extra fields, field_groups, ...)? It seems to me that it is already solved.
Comment #5
loparev commentedYes, I have seen that issue. It fixes problem on /user/register page. When I have updated profile2 to latest dev version problem on this page disappeared.
But I have another problem on /user/%id/edit page with account_profile module that uses
profile2_attach_form. On user edit form there is only one profile appears.Please, try to install profile2 (latest dev) and account_profile (latest dev). Create two profiles (test_1 with weight 0 and test_2 with weight 1) and add fieldset with some fields to each of them. Also check "show profile form on user registration page" and "Show profile as part of user account form" on settings page of profiles. Then check /user/register page - there is all right, all fieldsets with fields from test_1 and test_2 profiles are visible. Then check /user/%id/edit page and you will see that only test_2 profile's fields are visible on the page.
Comment #6
spleshkaThanks for steps to reproduce the issue, @Loparev. I was able to get the described behavior. After my small research turns our that the issue is not in profile2, but in account_profile module: it calls
profile2_attach_form()multiple times which cases the issue.Changing the issue related contrib & attaching the patch.
Comment #7
danchadwick commentedSource of the issue is the related issue.
It would be slightly better to move the test to the outer if.