Skip to content

Commit b61eb03

Browse files
committed
update advanced preferences, fixes cmu-delphi#12
- update the list of required fields to reflect that some preferences are currently disabled - fixes the bug where advanced preferences can't be updated
1 parent a27efc0 commit b61eb03

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

site/preferences.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function createPreference(&$output, $label, $prefix, $name, $type) {
5555
$survey_fields = array('flu', 'vir', 'epi', 'ph', 'sml');
5656
$email_fields = array('reminders');
5757
// $advanced_fields = array('pandemic', 'leaderboard', 'initials', 'prior', 'hospitalization');
58-
$advanced_fields = array('pandemic', 'leaderboard', 'initials', 'prior');
58+
$advanced_fields = array('leaderboard', 'initials');
5959
$account_fields = array();
6060
?>
6161
<div class="box_article centered">
@@ -299,16 +299,16 @@ function createPreference(&$output, $label, $prefix, $name, $type) {
299299
For these reasons, the 2009 pandemic season is hidden by default.
300300
However, forecasters who have experience in influenza epidemiology may find it helpful to display this atypical season.
301301
Here you have the option to display the 2009 pandemic season on the chart alongside the more typical epidemic seasons.
302-
</p>
302+
</p>
303303
<table cellspacing="0">
304304
<?php
305305
$prefix = 'advanced_';
306306
createPreference($output, 'Show the 2009 pandemic', $prefix, 'pandemic', 'bool');
307307
?>
308308
</table>
309309
-->
310-
311-
<!-- Nobody gets data earlier than 2009, so don't ask
310+
311+
<!-- Nobody gets data earlier than 2009, so don't ask
312312
<p class="text_title left">Additional Seasons --- for National and Regional Forecasts</p>
313313
<p class="text_body left">
314314
The flu sentinel surveillance network (ILINet) has been growing and evolving since its inception in 1997.

0 commit comments

Comments
 (0)