fixes
This commit is contained in:
@@ -29,7 +29,6 @@
|
||||
|
||||
namespace Espo\Controllers;
|
||||
|
||||
use Espo\Core\Exceptions\Forbidden;
|
||||
use Espo\Core\Exceptions\BadRequest;
|
||||
|
||||
use Espo\Tools\Import\Params as ImportParams;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user