Skip to content

Commit

Permalink
Merge branch 'PHRAS-3900-email-tls12' of https://github.com/alchemy-f…
Browse files Browse the repository at this point in the history
…r/Phraseanet into PHRAS-3900-email-tls12
  • Loading branch information
aynsix committed Oct 2, 2023
2 parents 4321d0e + fb32db3 commit d612898
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 d612898

Please sign in to comment.