Skip to content

Commit

Permalink
fixed: error adding entry to existing order (#545)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhupeshappfoster authored Dec 31, 2024
1 parent b0feeb0 commit d49d806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/repository/FileRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ public function createOrderFiles($order, $wordCounts)

public function createOrderFile($order, $elementId, $targetSite)
{
$element = Translations::$plugin->elementRepository->getElementById($elementId);
$element = Translations::$plugin->elementRepository->getElementById($elementId, $order->sourceSite);
$wordCount = Translations::$plugin->elementTranslator->getWordCount($element) ?? 0;

$file = $this->makeNewFile();
Expand Down

0 comments on commit d49d806

Please sign in to comment.