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
Comment #1
pcambraComment #2
pcambraFor 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.
Comment #3
merlinofchaos commentedHm. 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.
Comment #4.0
(not verified) commentedfix a little the reproduce steps