Closed (cannot reproduce)
Project:
Panels
Version:
6.x-3.3
Component:
Panel nodes
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Mar 2010 at 13:39 UTC
Updated:
17 Oct 2011 at 10:07 UTC
Notice bug fix:
diff -r sites/all/modules/panels/panels_node/panels_node.module
--- a/sites/all/modules/panels/panels_node/panels_node.module
+++ b/sites/all/modules/panels/panels_node/panels_node.module
@@ -222,7 +222,7 @@ function panels_node_load($node) {
function panels_node_insert(&$node) {
// Create a new display and record that.
$display = panels_new_display();
- $display->layout = $node->panels_node['layout'];
+ $display->layout = (isset($node->panels_node['layout']) ? $node->panels_node['layout'] : NULL);
// Special handling for nodes being imported from an export.module data dump.
if (!empty($node->export_display)) {
@@ -232,9 +232,9 @@ function panels_node_insert(&$node) {
}
panels_save_display($display);
- $css_id = $node->panels_node['css_id'];
+ $css_id = (isset($node->panels_node['css_id']) ? $node->panels_node['css_id'] : '');
- db_query("INSERT INTO {panels_node} (nid, did, css_id) VALUES (%d, %d, '%s')", $node->nid, $display->did, $node->panels_node['css_id']);
+ db_query("INSERT INTO {panels_node} (nid, did, css_id) VALUES (%d, %d, '%s')", $node->nid, $display->did, $css_id);
$node->panels_node['did'] = $display->did;
}
Comments
Comment #1
merlinofchaos commentedHow are you triggering these notices? Those fields should never BE empty.
Comment #2
merlinofchaos commentedMarking NMI until my question is answered.
Comment #3
Letharion commentedOP obviously lost interest.