Skip to content

Commit b7edc3d

Browse files
committed
fix bad deadline in feature page
1 parent 284a410 commit b7edc3d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pages/features.php

+3-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
$user = get_user();
1212
$group = $user->getGroup();
1313
$year = $group ? $group->year : get_current_year();
14-
$deadline = db_fetch_deadline($year);
14+
$deadlines = db_fetch_deadline($year);
15+
$deadline = $deadlines->feature_selection;
1516

1617
if (!$group && $user->role === ROLE_STUDENT) {
1718
terminate('Student is not in a group');
@@ -30,7 +31,7 @@
3031
}
3132
}
3233

33-
if ($user->role === ROLE_STUDENT && $deadline->isFeatureSelectionActive()) {
34+
if ($user->role === ROLE_STUDENT && $deadlines->isFeatureSelectionActive()) {
3435
$form = $formFactory->createBuilder(FormType::class)
3536
->add('url', UrlType::class, [
3637
'label' => 'Issue URL (if applicable)',
@@ -88,5 +89,3 @@
8889
if ($group && $group->hash_proposal_file) {
8990
$embed_file = dourl('features', ['download' => $group->id]);
9091
}
91-
92-
$deadline = $deadline->feature_selection;

0 commit comments

Comments
 (0)