Skip to content

Commit

Permalink
Merge pull request #2 from richgoldmd/dev-richgoldstein
Browse files Browse the repository at this point in the history
Added identifier as option value
  • Loading branch information
Scott Connerly authored Mar 27, 2018
2 parents f3cfa40 + 2a1132f commit 6e20c4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TimeZoneSelect.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public static function get_options_for_select($params = []) {
}

protected static function make_zone_option($tzDatum, $params = []) {
$output = '<option';
$output = '<option value="' . $tzDatum['identifier'] . '"';
if($params['selected'] == $tzDatum['identifier'] && $tzDatum['primary'])
$output .= ' selected';
$output .= ">$tzDatum[alias]</option>";
Expand Down

0 comments on commit 6e20c4f

Please sign in to comment.