summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Boyer2008-09-20 04:28:30 (GMT)
committerSam Boyer2008-09-20 04:28:30 (GMT)
commit24e3951c7800306be7176770a29bcc08122f692e (patch)
tree910c5b95c3b887b05930fa086934ff1f626bd572
parent6dda62e1e7ace072246534c8e9688644db2b87e7 (diff)
(Forward-port from D5 logic fixes) Updated panels_page_save_display() to cope with the new use of the $panel_page->export property.
-rw-r--r--panels_page/panels_page.write.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/panels_page/panels_page.write.inc b/panels_page/panels_page.write.inc
index ade10dd..fdd53c9 100644
--- a/panels_page/panels_page.write.inc
+++ b/panels_page/panels_page.write.inc
@@ -27,6 +27,11 @@ function panels_page_fields() {
*/
function panels_page_save_display(&$panel_page) {
if (empty($panel_page->displays[$panel_page->current]['did']) || $panel_page->displays[$panel_page->current]['did'] == 'new') {
+ if (!empty($panel_page->export)) {
+ $code = panels_export_display($panel_page->display);
+ eval($code);
+ $panel_page->display =& $display;
+ }
return panels_page_save($panel_page);
}
}