fix: keep internal agribusiness delivery notes out of portal presentation
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-10-23 11:22:39 +02:00
parent 4ad1bf402b
commit 165c2f6171
9 changed files with 81 additions and 15 deletions
+1
View File
@@ -79,6 +79,7 @@ final class OpportunityPromotion
'Limitações e lacunas: '.($text('limitations') ?: 'Informação ainda por completar.'),
'Fonte: '.($text('source_reference') ?: 'Não indicada.'), 'Edição: '.($text('edition') ?: 'Não indicada.'),
'Data-base: '.($data['source_date'] ?? 'Não indicada.')]));
$body = OpportunityPublicText::description($record, $body);
$projection = ['title' => $text('title'), 'summary' => $text('summary'), 'description' => $body,
'sector_id' => $data['sector_id'] ?? null, 'maturity_label' => 'Em preparação', 'notice' => self::NOTICE,
'territories' => array_map(fn ($p) => ['id' => end($p)->id, 'label' => implode(' / ', array_column($p, 'name'))], $paths)];