From 3b5129233c389ac8fbf497354523985fd4e29b86 Mon Sep 17 00:00:00 2001 From: dooug <dooug@417693.no-reply.drupal.org> Date: Thu, 17 Jan 2013 15:43:04 -0800 Subject: [PATCH] Issue #1156982 by dooug, dotman: Fixed SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'last_comment_uid()' at row 1. --- plugins/FeedsNodeProcessor.inc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/FeedsNodeProcessor.inc b/plugins/FeedsNodeProcessor.inc index 01642e41..cc8619e0 100644 --- a/plugins/FeedsNodeProcessor.inc +++ b/plugins/FeedsNodeProcessor.inc @@ -110,6 +110,15 @@ class FeedsNodeProcessor extends FeedsProcessor { } } + /** + * Validates a node. + */ + protected function entityValidate($entity) { + if (empty($entity->uid)) { + $entity->uid = $this->config['author']; + } + } + /** * Save a node. */ -- GitLab