diff --git a/includes/FeedsDataHandler.inc b/includes/FeedsDataHandler.inc index 2093c24..2917c1f 100644 --- a/includes/FeedsDataHandler.inc +++ b/includes/FeedsDataHandler.inc @@ -110,8 +110,12 @@ class FeedsDataHandler extends DataHandler { * ); */ public function insert(&$record) { + if (key_exists('parentog_groups', $record)) { + if (is_array($record['parentog_groups'])) { + $record['parentog_groups'] = array_pop($record['parentog_groups']); + } + } parent::insert($record); - foreach ($record as $key => $value) { if ($handler = $this->joinedTableHandler($key)) { foreach ($value as $v) {