View Issue Details

IDProjectCategoryView StatusLast Update
0009590mantisbtpreferencespublic2009-01-15 11:26
Reporterarablue99 Assigned Tograngeway  
PrioritynormalSeveritytrivialReproducibilityalways
Status closedResolutionfixed 
Product Version1.2.0a2 
Fixed in Version1.2.0a3 
Summary0009590: Empty option in email preferences menu breaks XHTML compliance
Description

When a user looks at their email preferences under their account or when an administrator wishes to change the email preferences for a user, the dropdown menu to select the minimum severity level at which an email will be sent has an empty option under "any" and above "feature". This causes the page to be invalid XHTML. Looking at the empty option's value, it has the same value (0) as the "any" option.

Steps To Reproduce

As user:
Click the "My Account" link in the menu bar.
Click the "Preferences" link in the Edit Account table.
Click any of the dropdown menus on the "Email on X" lines and to the right of "With minimum severity of".
Note the empty option under "any" and above "feature".

As admin:
Click the "Manage" link in the menu bar.
Click the "Manage users" link.
Click on a user to edit the settings of.
Under the Account Preferences heading, click any of the dropdown menus on the "Email on X" lines and to the right of "With minimum severity of".
Note the empty option under "any" and above "feature".

Additional Information

In account_prefs_inc.php this is the html code for one of the several dropdown menus:

<select name="email_on_new_min_severity">
<option value="<?php echo OFF ?>"><?php echo lang_get( 'any' ) ?></option>
<option value="<?php echo OFF ?>"></option>
<?php print_enum_string_option_list( 'severity', $t_pref->email_on_new_min_severity ) ?>
</select>

The second option is empty and has no text and should be removed or given some text for each email preference dropdown.

TagsNo tags attached.
Attached Files
screenshot.jpg (62,686 bytes)   
screenshot.jpg (62,686 bytes)   

Activities

grangeway

grangeway

2008-12-21 09:01

reporter   ~0020457

Hello,

Fixed in git trunk

Paul

Related Changesets

MantisBT: master d9f7d980

2008-12-21 09:01

Paul Richards


Details Diff
Fix 0009590: Empty option in email preferences menu breaks XHTML compliance Affected Issues
0009590
mod - account_prefs_inc.php Diff File