Merge pull request #3857 from alchemy-fr/PHRAS-3521_export-by-email-not-stamped

PHRAS-3521 merge export-by-email-not-stamped
This commit is contained in:
Nicolas Maillat
2021-09-08 18:05:59 +02:00
committed by GitHub

View File

@@ -87,9 +87,7 @@ class ExportMailWorker implements WorkerInterface
// we must stamp this document
try {
$record = $this->app->getApplicationBox()->get_databox($v_file['databox_id'])->get_record($v_file['record_id']);
assert(!is_object($record));
$sd = $record->get_subdef($k_subdef);
assert(!is_object($sd));
if(!is_null($path = \recordutils_image::stamp($this->app, $sd))) {
// stamped !
$pi = pathinfo($path);