Closed (duplicate)
Project:
Profile 2
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Jun 2012 at 08:10 UTC
Updated:
30 Mar 2018 at 19:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
muriqui commentedI think that's a bug in Profile2... Their _form_alter() is comparing against an array value that doesn't necessarily exist. I'm assigning this to Profile2's queue and attaching a patch to fix the issue.
Comment #2
muriqui commentedwhoops, wrong issue queue... Apparently, there's a "Profile2" and a "Profile 2"...
Comment #3
tinefin commentedWorks for me - profile2-7.x-1.2
Thanks!
Comment #4
kaizerking commentedthat works plz commit
Comment #5
tobiasbWorks also for me in 7.x-1.2.
Comment #6
joachim commentedI think the better fix would be to lift the instance from $form['#instance'], which is always set.
Comment #7
alamp commented@muriqui Thanks, it works fine with Profile 2 (7.x-1.3)
Comment #8
maddentim commentedI believe this issue is now fixed by this duplicate issue: https://www.drupal.org/project/profile2/issues/2166431
The patch is slightly different with the use of a !empty instead of isset but should yield the same result.
Comment #9
maddentim commented