Hi

I'm overriding the user/%uid/edit page with page manager and panels and drupal_set_messages gets delayed "one refresh" when in other pages like user_view works perfectly.

Steps to reproduce

- Enable ctools, panels and ctools plugin example
- Override user_edit page with a panel and add the no context content type on it.
- Add a drupal_set_message('whatever') in no_context_content_type_render function
- Refresh the page, no message, refresh again, message shows up.

I've made a change in the plugin: add a drupal_render to the output and with that it's working for my case but it may not be the desired change for solving this.
I'm attaching the little patch in the next comment.

Comments

pcambra’s picture

Status: Active » Needs review
StatusFileSize
new503 bytes
pcambra’s picture

StatusFileSize
new538 bytes

For some reason, when you're admin the $output variable comes already rendered, but for the rest of users is a renderable array, another patch adapted to this.

merlinofchaos’s picture

Status: Needs review » Fixed

Hm. This is an interesting artifact of the way the render system works. I'm not 100% sold on this, but I don't think it's actually wrong.

Committed.

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

fix a little the reproduce steps