Vertragshistorie: Vertragsnummern als Link in neuem Tab
Erwähnte Vertragsnummern (Pattern PREFIX-RANDOM) in Title und Description werden gegen previousContract + followUpContract des aktuellen Vertrags aufgelöst und als Link mit target="_blank" gerendert. Nicht aufgelöste Nummern bleiben als Text. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -3224,6 +3224,14 @@ export default function ContractDetail() {
|
||||
<ContractHistorySection
|
||||
contractId={contractId}
|
||||
canEdit={hasPermission('contracts:update')}
|
||||
knownContracts={{
|
||||
...(c.previousContract?.contractNumber
|
||||
? { [c.previousContract.contractNumber]: c.previousContract.id }
|
||||
: {}),
|
||||
...(c.followUpContract?.contractNumber
|
||||
? { [c.followUpContract.contractNumber]: c.followUpContract.id }
|
||||
: {}),
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user