From 191bba7afc46f44370bb5f7211c9dfd4c1bcfbd9 Mon Sep 17 00:00:00 2001 From: yuri Date: Tue, 14 Feb 2017 17:06:10 +0200 Subject: [PATCH] fix notice --- application/Espo/Services/Import.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/Espo/Services/Import.php b/application/Espo/Services/Import.php index 11692bd632..89e13c38d5 100644 --- a/application/Espo/Services/Import.php +++ b/application/Espo/Services/Import.php @@ -416,9 +416,9 @@ class Import extends \Espo\Services\Record } if (in_array($action, ['createAndUpdate', 'update'])) { + $updateByFieldList = []; + $whereClause = array(); if (!empty($params['updateBy']) && is_array($params['updateBy'])) { - $updateByFieldList = []; - $whereClause = array(); foreach ($params['updateBy'] as $i) { if (array_key_exists($i, $importFieldList)) { $updateByFieldList[] = $importFieldList[$i];