Fixed showing linked contracts in CancelForm
This commit is contained in:
@@ -116,15 +116,14 @@
|
||||
<?php foreach($contract->links as $link): ?>
|
||||
<?php
|
||||
|
||||
if(!$link->billing_period) continue;
|
||||
|
||||
if($link->contract_id == $contract->id) {
|
||||
$linkcontract = $link->origin;
|
||||
} else {
|
||||
$linkcontract = $link->contract;
|
||||
|
||||
}
|
||||
|
||||
if(!$linkcontract->billing_period) continue;
|
||||
|
||||
?>
|
||||
<tr data-link-type="<?=$link->type?>">
|
||||
<td class="text-center">
|
||||
|
||||
Reference in New Issue
Block a user