Deactivated application deadline

Deactivated application deadline by setting checking variable
is_expired to false. This is to keep the logic for a later time when the
application deadline is going to be defined.

Signed-off-by: cris-technikum <hainberg@technikum-wien.at>
This commit is contained in:
Cris
2021-01-18 13:55:45 +01:00
committed by cris-technikum
parent 0edccc299c
commit 3ffc5c7d3f
2 changed files with 7 additions and 7 deletions
@@ -66,7 +66,8 @@ class requestAnrechnung extends Auth_Controller
}
// Check if application deadline is expired
$is_expired = $this->_checkAntragDeadline($studiensemester_kurzbz);
// $is_expired = $this->_checkAntragDeadline($studiensemester_kurzbz);
$is_expired = false; // Set to false until Deadline is defined
// Get Anrechung data
$result = $this->anrechnunglib->getAnrechnungDataByLv($lehrveranstaltung_id);
@@ -182,12 +182,11 @@ $this->load->view(
<span>Antrag gestellt am <?php echo $anrechnungData->insertamum; ?></span>
</div>
<?php endif; ?>
<?php if ($disabled): ?>
<div class="alert alert-warning">
<?php echo $this->p->t('global', 'bearbeitungGesperrt'); ?>
<?php echo $is_expired && empty($antragData->anrechnung_id)? ': '. $this->p->t('anrechnung', 'deadlineUeberschritten') : ''; ?>
<!-- --><?php //echo !empty($anrechnungData->anrechnung_id) ? $this->p->t('anrechnung', 'anrechnungIst'). ' '. $anrechnungData->status : ''; ?>
</div>
<?php if ($is_expired): ?>
<div class="alert alert-warning">
<?php echo $this->p->t('global', 'bearbeitungGesperrt'); ?>
<?php echo $is_expired && empty($antragData->anrechnung_id)? ': '. $this->p->t('anrechnung', 'deadlineUeberschritten') : ''; ?>
</div>
<?php endif; ?>
</div>
</div>