Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 08e5d0ad

Přidáno uživatelem Michal Kliment před asi 5 roky(ů)

Fixes #1127: Repair of bug on showing former members [develop]

Zobrazit rozdíly:

application/controllers/members.php
}
// finds date of expiration of member fee
$expiration_info = '';
$expiration_info = NULL;
if (Settings::get('finance_enabled') &&
isset($account) && !$is_applicant && !$is_former)
application/views/members/show.php
</td>
</tr>
<?php if ($member->type != Member_Model::TYPE_APPLICANT) { ?>
<?php if (isset($expiration_info) && ($entrance_fee_paid == $member->entrance_fee)) { ?>
<?php if ($expiration_info && ($entrance_fee_paid == $member->entrance_fee)) { ?>
<tr>
<th><?php echo __('Payed to').'&nbsp;'.help::hint('payed_to') ?></th>
<td><span style="color: <?php echo ($account->balance < 0) ? 'red' : 'green' ?>"><?php if ($expiration_info->shortened): ?>&gt; <?php endif; ?><?php echo $expiration_info->expiration_date ?></span></td>
<td><span style="color: <?php echo ($account->balance < 0) ? 'red' : 'green' ?>">
<?php
if ($expiration_info->shortened): ?>&gt; <?php endif;
echo $expiration_info->expiration_date ?>
</span></td>
</tr>
<?php } ?>
<?php if (isset($fee)) { ?>

Také k dispozici: Unified diff