For some reason, the user edit page doesn't have the user context:

User edit
http://skit.ch/b4g3
vs
User view
http://skit.ch/b4g4

Comments

pcambra’s picture

Status: Active » Needs review
StatusFileSize
new511 bytes

Here's a patch to fix this

merlinofchaos’s picture

Status: Needs review » Fixed
merlinofchaos’s picture

Er. Forgot to say committed. :)

Status: Fixed » Closed (fixed)

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

merlinofchaos’s picture

Status: Closed (fixed) » Active

I'm an idiot for committing this patch.

This needs ot be reverted.

pcambra’s picture

What's wrong with this patch?

Letharion’s picture

anon’s picture

StatusFileSize
new511 bytes

This patch will revert the one in #1

pcambra’s picture

Yeah, it will, of course but the issue in #0 will remain unfixed, no user context in an user edit form panel.

merlinofchaos’s picture

That would be easily fixed by editing user_edit_form.inc and adding 'user', 'entity:user' to the keywords in

  $context = new ctools_context(array('form', 'user_edit', 'user_form', 'user_edit_form'));

That would then allow the user edit form context to double as a user.

Letharion’s picture

Status: Active » Needs review
StatusFileSize
new996 bytes

Patch based on #10.

merlinofchaos’s picture

Status: Needs review » Fixed

Fantastic.

Letharion: If you properly format your commit messages (Issue #xxxxxx by yyyyy: message) then I can just use git am.

tim.plunkett’s picture

Status: Fixed » Needs review
StatusFileSize
new511 bytes

So the patch in #11 uses 'entity:user', whereas the patch in #1 uses entity_id:user, and neither actually work so far.

I didn't spend any time debugging this, but reverting #1 and keeping #11 fixes #1461510: General form not available on user%user/edit anymore.

jherencia’s picture

I can confirm that #13 works.
But there is something broken once applied with Panels everywhere, I'm trying to figure out what's the problem but don't have enough experience with CTools architecture to find it.

Maybe it would be better to open another issue but I'll do it if no one test this. It's possible that something in RC2 don't work with PE, if anyone can try user/%user/edit rendered with a PE layout it would help.

Edit: Somehow now works...

merlinofchaos’s picture

Status: Needs review » Fixed

Someday this saga will be over with. Committed #13.

merlinofchaos’s picture

Can you talk more about what's broken with PE?

jherencia’s picture

@merlinofchaos After clearing the caches three times it finally worked, so don't know what happened and didn't have the time to investigate further.

I use PE everyday so, in case I see the problem I open an issue, thank you.

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

Fix image links