summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEarl Miles2008-09-16 22:52:14 (GMT)
committerEarl Miles2008-09-16 22:52:14 (GMT)
commitd230da48922ca324e12802d7f335a7f9365f739a (patch)
treebf2c42cf1fb7f1257a41b7c3a3b792ea153d976b
parent6d9dbdfe81f8ab1d8b30f83dd2516f523d559ef0 (diff)
#307515 by Darren Oh: Skip "serial" fields on insert.
-rw-r--r--panels_page/panels_page.write.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/panels_page/panels_page.write.inc b/panels_page/panels_page.write.inc
index 71f9e28..ade10dd 100644
--- a/panels_page/panels_page.write.inc
+++ b/panels_page/panels_page.write.inc
@@ -72,7 +72,7 @@ function _panels_page_insert(&$panel_page) {
$clone->did = $panel_page->primary->did;
foreach ($schema['fields'] as $field => $info) {
- if (isset($panel_page->$field)) {
+ if (isset($panel_page->$field) && $info['type'] != 'serial') {
$fields[] = $field;
$placeholders[] = db_type_placeholder($info['type']);
$values[] = _panels_page_save_value($info, $clone->$field);