Skip to content

Commit

Permalink
Merge branch 'master' into PHRAS-3900-email-tls12
Browse files Browse the repository at this point in the history
  • Loading branch information
nmaillat authored Sep 29, 2023
2 parents 8f66d7e + 78a36ae commit fb32db3
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions lib/Alchemy/Phrasea/Command/Thesaurus/Translator/Job.php
Original file line number Diff line number Diff line change
Expand Up @@ -480,16 +480,17 @@ private function doRecord($record_id, $metas)
}
}

$jsActions = json_encode($actions, JSON_PRETTY_PRINT);
if($this->output->getVerbosity() >= OutputInterface::VERBOSITY_VERY_VERBOSE) {
$this->output->writeln(sprintf("<info>JS : %s</info>", $jsActions));
}

if (!$this->globalConfiguration->isDryRun()) {
$record = $this->getDatabox()->getRecordRepository()->find($record_id);
$record->setMetadatasByActions(json_decode($jsActions));
if(count($actions) > 0) {
$jsActions = json_encode($actions, JSON_PRETTY_PRINT);
if($this->output->getVerbosity() >= OutputInterface::VERBOSITY_VERY_VERBOSE) {
$this->output->writeln(sprintf("<info>JS : %s</info>", $jsActions));
}

if (!$this->globalConfiguration->isDryRun()) {
$record = $this->getDatabox()->getRecordRepository()->find($record_id);
$record->setMetadatasByActions(json_decode($jsActions));
}
}

$this->recordsDone++;
}

Expand Down

0 comments on commit fb32db3

Please sign in to comment.