diff --git a/classes/import/ImportBrandModelFromXML.php b/classes/import/ImportBrandModelFromXML.php index a736a8ac..6b17d1d0 100644 --- a/classes/import/ImportBrandModelFromXML.php +++ b/classes/import/ImportBrandModelFromXML.php @@ -54,6 +54,18 @@ public function getFields() : array return parent::getFields(); } + /** + * Start import + * @param $obProgressBar + * @throws + */ + public function import($obProgressBar = null) + { + parent::import($obProgressBar); + + $this->deactivateElements(); + } + /** * Prepare array of import data */ diff --git a/classes/import/ImportCategoryModelFromXML.php b/classes/import/ImportCategoryModelFromXML.php index 719359fc..279ce3d9 100644 --- a/classes/import/ImportCategoryModelFromXML.php +++ b/classes/import/ImportCategoryModelFromXML.php @@ -65,6 +65,18 @@ public function getFields() : array return parent::getFields(); } + /** + * Start import + * @param $obProgressBar + * @throws + */ + public function import($obProgressBar = null) + { + parent::import($obProgressBar); + + $this->deactivateElements(); + } + /** * Prepare array of import data */ diff --git a/classes/import/ImportOfferModelFromXML.php b/classes/import/ImportOfferModelFromXML.php index dc836666..64944fdd 100644 --- a/classes/import/ImportOfferModelFromXML.php +++ b/classes/import/ImportOfferModelFromXML.php @@ -72,6 +72,18 @@ public function getFields() : array return parent::getFields(); } + /** + * Start import + * @param $obProgressBar + * @throws + */ + public function import($obProgressBar = null) + { + parent::import($obProgressBar); + + $this->deactivateElements(); + } + /** * Prepare array of import data */ diff --git a/classes/import/ImportOfferPriceFromXML.php b/classes/import/ImportOfferPriceFromXML.php index 4520d7d9..d89bcf4a 100644 --- a/classes/import/ImportOfferPriceFromXML.php +++ b/classes/import/ImportOfferPriceFromXML.php @@ -64,6 +64,18 @@ public function getFields() : array return parent::getFields(); } + /** + * Start import + * @param $obProgressBar + * @throws + */ + public function import($obProgressBar = null) + { + parent::import($obProgressBar); + + $this->deactivateElements(); + } + /** * Prepare array of import data */ diff --git a/classes/import/ImportProductModelFromXML.php b/classes/import/ImportProductModelFromXML.php index 00863516..20b40769 100644 --- a/classes/import/ImportProductModelFromXML.php +++ b/classes/import/ImportProductModelFromXML.php @@ -63,6 +63,18 @@ public function getFields() : array return parent::getFields(); } + /** + * Start import + * @param $obProgressBar + * @throws + */ + public function import($obProgressBar = null) + { + parent::import($obProgressBar); + + $this->deactivateElements(); + } + /** * Prepare array of import data */ diff --git a/updates/version.yaml b/updates/version.yaml index dd3778fd..ec2d0626 100644 --- a/updates/version.yaml +++ b/updates/version.yaml @@ -99,4 +99,6 @@ 1.22.3: - 'Fixed attaching of children categories to parent category in script of import from XML.' 1.22.4: - - 'Removed deleted offers from sorting by price.' \ No newline at end of file + - 'Removed deleted offers from sorting by price.' +1.22.5: + - 'Fixed bug with deactivating items in import from XML files.' \ No newline at end of file