Skip to content

Commit

Permalink
Merge pull request #263 from nysenate/nys-16809--thanksgiving24
Browse files Browse the repository at this point in the history
Fix thanksgiving date range config
  • Loading branch information
routinet authored Nov 22, 2024
2 parents dbea11a + 45c2855 commit 7b88292
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ public function build() {
$term = $this->entityTypeManager->getStorage('taxonomy_term')->load($term_id);
$form_type = $term->getName();
$safe_form_type = strtolower(preg_replace('/[\W]/', '_', $form_type));
if ($form_type == 'Thankful') {
$safe_form_type = 'thankgiving';
}
$senator_term = ($node->hasField('field_senator_multiref') && !$node->get('field_senator_multiref')->isEmpty()) ? $node->get('field_senator_multiref')->entity : [];

$last_year_params = $params = [
Expand Down Expand Up @@ -156,7 +159,7 @@ public function build() {
'panels' => [
[
'tab_text' => 'Current Year',
'title' => '2023 Submissions',
'title' => '2024 Submissions',
'filter' => $filter,
'years' => $this->schoolFormsService->getResults($params, FALSE),
],
Expand Down

0 comments on commit 7b88292

Please sign in to comment.