diff --git a/vendor/magento/module-import-export/Block/Adminhtml/Import/Edit/Form.php b/vendor/magento/module-import-export/Block/Adminhtml/Import/Edit/Form.php index bf394c9ed0c42..11eaaa1a4a202 100644 --- a/vendor/magento/module-import-export/Block/Adminhtml/Import/Edit/Form.php +++ b/vendor/magento/module-import-export/Block/Adminhtml/Import/Edit/Form.php @@ -1,7 +1,7 @@ '', ] ); + $fieldset->addField( + '_import_history_id', + 'hidden', + [ + 'name' => '_import_history_id', + 'label' => __('Import History id'), + 'title' => __('Import History id'), + 'value' => '', + ] + ); $fieldsets['upload'] = $fieldset; $form->setUseContainer(true); $this->setForm($form); diff --git a/vendor/magento/module-import-export/Controller/Adminhtml/Import/Validate.php b/vendor/magento/module-import-export/Controller/Adminhtml/Import/Validate.php index c388851edcbe4..bf0758bb2105c 100644 --- a/vendor/magento/module-import-export/Controller/Adminhtml/Import/Validate.php +++ b/vendor/magento/module-import-export/Controller/Adminhtml/Import/Validate.php @@ -1,7 +1,7 @@ getValidatedIds(); if (count($ids) > 0) { $resultBlock->addAction('value', Import::FIELD_IMPORT_IDS, $ids); + $resultBlock->addAction( + 'value', + '_import_history_id', + $this->historyModel->getId() + ); } } catch (\Magento\Framework\Exception\LocalizedException $e) { $resultBlock->addError($e->getMessage()); diff --git a/vendor/magento/module-import-export/Model/History.php b/vendor/magento/module-import-export/Model/History.php index 9a97367ba8453..ad0be7fbb8bc1 100644 --- a/vendor/magento/module-import-export/Model/History.php +++ b/vendor/magento/module-import-export/Model/History.php @@ -1,7 +1,7 @@ isReportEntityType()) { - $this->load($this->getLastItemId()); + $this->load($import->getData('_import_history_id') ?? $this->getLastItemId()); $executionResult = self::IMPORT_IN_PROCESS; if ($updateSummary) { $executionResult = $this->reportHelper->getExecutionTime($this->getStartedAt()); diff --git a/vendor/magento/module-import-export/i18n/en_US.csv b/vendor/magento/module-import-export/i18n/en_US.csv index cc1098841bab8..378daac3afa25 100644 --- a/vendor/magento/module-import-export/i18n/en_US.csv +++ b/vendor/magento/module-import-export/i18n/en_US.csv @@ -29,6 +29,7 @@ Import,Import "File to Import","File to Import" "Select File to Import","Select File to Import" "Images File Directory","Images File Directory" +"Import History id","Import History id" "For Type ""Local Server"" use relative path to <Magento root directory>/var/import/images, e.g. product_images, import_images/batch1.

For example, in case product_images, files should be placed into <Magento root directory>/var/import/images/product_images folder.","For Type ""Local Server"" use relative path to <Magento root directory>/var/import/images, e.g. product_images, import_images/batch1.

For example, in case product_images, files should be placed into <Magento root directory>/var/import/images/product_images folder." "Download Sample File","Download Sample File" "Please correct the data sent value.","Please correct the data sent value."