This commit is contained in:
Yuri Kuznetsov
2021-09-05 17:05:39 +03:00
parent d6431cbcc4
commit d49b713ccd
3 changed files with 4 additions and 6 deletions
-1
View File
@@ -29,7 +29,6 @@
namespace Espo\Controllers;
use Espo\Core\Exceptions\Forbidden;
use Espo\Core\Exceptions\BadRequest;
use Espo\Tools\Import\Params as ImportParams;
+2 -2
View File
@@ -346,12 +346,12 @@ class Params
->withIdleMode($raw->idleMode ?? false)
->withManualMode($raw->manualMode ?? false)
->withPersonNameFormat($raw->personNameFormat ?? null)
->withSilentMode($raw->silentMode ?? null)
->withSilentMode($raw->silentMode ?? false)
->withSkipDuplicateChecking($raw->skipDuplicateChecking ?? false)
->withStartFromLastIndex($raw->startFromLastIndex ?? false)
->withTextQualifier($raw->textQualifier ?? null)
->withTimeFormat($raw->timeFormat ?? false)
->withTimezone($raw->timezone ?? false)
->withTimezone($raw->timezone ?? null)
->withUpdateBy($raw->updateBy ?? []);
return $obj;
+2 -3
View File
@@ -119,7 +119,7 @@ class Service
$entityType = $source->getTargetEntityType();
$attributeList = $source->getTargetAttributeList() ?? [];
$params = ImportParams::fromRaw($source->getParams())
$params = Params::fromRaw($source->getParams())
->withIdleMode(false)
->withManualMode(false);
@@ -152,8 +152,7 @@ class Service
$entityType = $import->getTargetEntityType();
$attributeList = $import->getTargetAttributeList() ?? [];
$params = ImportParams
::fromRaw($import->getParams())
$params = Params::fromRaw($import->getParams())
->withStartFromLastIndex($startFromLastIndex);
$attachmentId = $import->getFileId();