Revize cd149dd5
Přidáno uživatelem Ondřej Fibich před téměř 7 roky(ů)
application/controllers/transfers.php | ||
---|---|---|
if ($account->member->type != Member_Model::TYPE_APPLICANT &&
|
||
$account->member->type != Member_Model::TYPE_FORMER)
|
||
{
|
||
$view->content->expiration_date = Members_Controller::get_expiration_date($account);
|
||
$view->content->expiration_info = $this->services
|
||
->injectMemberExpirationCalc()
|
||
->get_expiration_info($account);
|
||
}
|
||
|
||
$view->content->transfers_grid = $transfers_grid;
|
Také k dispozici: Unified diff
Refs #1076: member expiration date calculation fix. The calc functionality was separate from Members controller to a new Expiration calc service. The new service comes with unit tests which tests the #1076. Additionally this patch comes with some fixes and improvements in already existing unit and integration tests.