Skip to content

Commit

Permalink
[BUGFIX] Skip event-transforming DataHandlerInterceptor while importing
Browse files Browse the repository at this point in the history
In case `ext:impexp` is importing, the interceptor is skipped.
  • Loading branch information
ohader committed May 15, 2024
1 parent bf0879d commit fbb7d01
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,15 @@ public function processCmdmap_beforeStart(DataHandler $dataHandler)

protected function process(DataHandler $dataHandler)
{
// skip, in case there's actually nothing to do
if (empty($dataHandler->datamap) && empty($dataHandler->cmdmap)) {
return;
}
// skip, in case this is an import process
// @todo `ext:impexp` still should be handled at some point (later™)
if ($dataHandler->isImporting) {
return;
}
// create command mapper for incoming data
$commandTranslator = DataHandlerTranslator::create(
$dataHandler->datamap,
Expand Down

0 comments on commit fbb7d01

Please sign in to comment.