mantisbt-plugins / Announce

Announcements plugin for MantisBT, lets privileged accounts create and post announcements that can be shown to users on a global or per-project basis, and allow users to dismiss individual messages.
MIT License
20 stars 14 forks source link

Selecting current value from locations option list does not work #27

Closed dregad closed 6 years ago

dregad commented 6 years ago

check_selected() echoes the selected attribute and returns void, so the foreach loop's code in print_location_option_list() generates invalid HTML, like

selected="selected"<option value="header" >Page Header</option>

instead of

<option value="header" selected="selected">Page Header</option>