Skip to content

Commit

Permalink
added: akeneo item build
Browse files Browse the repository at this point in the history
  • Loading branch information
Thijzer committed Dec 20, 2024
1 parent 487bc71 commit 47b906a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Component/Converter/Matcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,14 @@ public function duplicateWithNewKey(string $newPrimaryKey): self
$matcher = new self();
$matcher->scope = $this->scope;
$matcher->locale = $this->locale;
$matcher->matches = explode($this->separator, $newPrimaryKey);
$matcher->matches = $this->matches;
$matcher->matches[1] = $newPrimaryKey;
if (count(explode($this->separator, $newPrimaryKey)) > 1) {
$matcher->matches = explode($this->separator, $newPrimaryKey);
}

// obelink-xml-v3
//$matcher->matches = explode($this->separator, $newPrimaryKey);

return $matcher;
}
Expand Down

0 comments on commit 47b906a

Please sign in to comment.