From: gordonh <gordonh>
Date: Tue, 22 Apr 2008 04:26:04 +0000 (+0000)
Subject: Fix up bug in panels
X-Git-Tag: CMS_S4_V0~14
X-Git-Url: http://localhost/gitweb/?p=lpcvs%2F.git;a=commitdiff_plain;h=da065263142be851852196a3de88d992b421f233

Fix up bug in panels
---

diff --git a/sites/all/modules/panels/panels_page/panels_page.module b/sites/all/modules/panels/panels_page/panels_page.module
index 77a3d0c..32815b5 100644
--- a/sites/all/modules/panels/panels_page/panels_page.module
+++ b/sites/all/modules/panels/panels_page/panels_page.module
@@ -767,6 +767,7 @@ function panels_page_fetch_display(&$panel_page, $id = NULL) {
 function _panels_page_fetch_display(&$panel_page, $id) {
   $info = $panel_page->displays[$id];
   if ($display = _panels_fetch_display_from_info($info)) {
+    $panel_page->display = $display;
     return $display;
   }
 
@@ -792,6 +793,7 @@ function _panels_page_fetch_display(&$panel_page, $id) {
   $code = panels_export_display($display);
   eval($code);
 
+  $panel_page->display = $display;
   return $display;
 }
 
