Closed (won't fix)
Project:
Panels
Version:
5.x-2.0-rc1a
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Dec 2008 at 23:25 UTC
Updated:
12 Mar 2010 at 00:27 UTC
To reproduce bug:
1) Create a mini panel with a Required Node Context.
2) Fill the content of the mini panel with any node related content, such as "Node content".
3) Create a normal page panel.
4) Add two node contexts, with two different nodes.
5) Add two mini panels to the normal panel, each with a different node context.
View the resulting page. I would expect it to show the contents of the two different nodes. Instead it shows the contents of the first node twice.
Solution: In panels.module, edit panels_render_pane_contents - change the first bit from:
if (empty($pane->context)) {
$pane->context = panels_pane_select_context($pane, $display->context);
if ($pane->context === FALSE) {
return FALSE;
}
}
to:
$pane->context = panels_pane_select_context($pane, $display->context);
if ($pane->context === FALSE) {
return FALSE;
}
Comments
Comment #1
starbow commentedComment #2
esmerel commentedNo fixes will be added to the 2.x line.