Skip to content

Commit 9a7688c

Browse files
committed
Fix $config being used before it is initialised
1 parent deff9fa commit 9a7688c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Model/Import/Category.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,8 @@ public function __construct(
274274
$this->getErrorAggregator()->addErrorMessageTemplate($errorCode, $message);
275275
}
276276

277+
$this->config = $config;
278+
277279
$this->initOnTapAttributes()
278280
->initWebsites()
279281
->initStores()
@@ -283,7 +285,6 @@ public function __construct(
283285

284286
$this->entityTable = $this->defaultCategory->getResource()->getEntityTable();
285287
$this->categoryImportVersionFeature = $this->versionFeatures->create('CategoryImportVersion');
286-
$this->config = $config;
287288
}
288289

289290
/**

0 commit comments

Comments
 (0)