From 40e9aaf505ebb105b22ad4caf0b1e875b3820253 Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Tue, 3 Dec 2024 19:55:16 +0100 Subject: [PATCH] Fixed owner link in Contract View --- application/Contract/Contract.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/Contract/Contract.php b/application/Contract/Contract.php index 2e5dab1f1..e7ffa125a 100644 --- a/application/Contract/Contract.php +++ b/application/Contract/Contract.php @@ -812,7 +812,7 @@ class Contract extends mfBaseModel { $contract_details['matchcode'] = ['label' => 'Matchcode', 'value' => $contract->matchcode]; $contract_details['owner'] = ['label' => 'Kunde', 'value' => $contract->owner->getCompanyOrName()." (".$contract->owner->customer_number.")", - 'url' => $getUrl('Address', 'View', ['id' => $contract->billingaddress->id])]; + 'url' => $getUrl('Address', 'View', ['id' => $contract->owner->id])]; $contract_details['billingaddress'] = ['label' => 'Rechnungsadresse', "value" => ""]; if ($contract->billingaddress_id) {